fix RBT_ENTRY in pf_state and pf_state_key
authoraisha <aisha@openbsd.org>
Sat, 7 Sep 2024 22:41:55 +0000 (22:41 +0000)
committeraisha <aisha@openbsd.org>
Sat, 7 Sep 2024 22:41:55 +0000 (22:41 +0000)
ok sashan@

sys/net/pfvar_priv.h

index d059357..374ce18 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: pfvar_priv.h,v 1.37 2024/06/21 12:51:29 sashan Exp $  */
+/*     $OpenBSD: pfvar_priv.h,v 1.38 2024/09/07 22:41:55 aisha Exp $   */
 
 /*
  * Copyright (c) 2001 Daniel Hartmeier
@@ -72,7 +72,7 @@ struct pf_state_key {
        sa_family_t      af;
        u_int8_t         proto;
 
-       RB_ENTRY(pf_state_key)   sk_entry;
+       RBT_ENTRY(pf_state_key)  sk_entry;
        struct pf_statelisthead  sk_states;
        struct pf_state_key     *sk_reverse;
        struct inpcb            *sk_inp;        /* [L] */
@@ -109,7 +109,7 @@ struct pf_state {
        struct pfsync_deferral  *sync_defer;    /* [S] */
        TAILQ_ENTRY(pf_state)    entry_list;    /* [L] */
        SLIST_ENTRY(pf_state)    gc_list;       /* [g] */
-       RB_ENTRY(pf_state)       entry_id;      /* [P] */
+       RBT_ENTRY(pf_state)      entry_id;      /* [P] */
        struct pf_state_peer     src;
        struct pf_state_peer     dst;
        struct pf_rule_slist     match_rules;   /* [I] */