-#define BRDGADD 0 /* add bridge member (ifbreq) */
-#define BRDGDEL 1 /* delete bridge member (ifbreq) */
-#define BRDGGIFFLGS 2 /* get member if flags (ifbreq) */
-#define BRDGSIFFLGS 3 /* set member if flags (ifbreq) */
-#define BRDGSCACHE 4 /* set cache size (ifbrparam) */
-#define BRDGGCACHE 5 /* get cache size (ifbrparam) */
-#define BRDGGIFS 6 /* get member list (ifbifconf) */
-#define BRDGRTS 7 /* get address list (ifbaconf) */
-#define BRDGSADDR 8 /* set static address (ifbareq) */
-#define BRDGSTO 9 /* set cache timeout (ifbrparam) */
-#define BRDGGTO 10 /* get cache timeout (ifbrparam) */
-#define BRDGDADDR 11 /* delete address (ifbareq) */
-#define BRDGFLUSH 12 /* flush address cache (ifbreq) */
-
-#define BRDGGPRI 13 /* get priority (ifbrparam) */
-#define BRDGSPRI 14 /* set priority (ifbrparam) */
-#define BRDGGHT 15 /* get hello time (ifbrparam) */
-#define BRDGSHT 16 /* set hello time (ifbrparam) */
-#define BRDGGFD 17 /* get forward delay (ifbrparam) */
-#define BRDGSFD 18 /* set forward delay (ifbrparam) */
-#define BRDGGMA 19 /* get max age (ifbrparam) */
-#define BRDGSMA 20 /* set max age (ifbrparam) */
-#define BRDGSIFPRIO 21 /* set if priority (ifbreq) */
-#define BRDGSIFCOST 22 /* set if path cost (ifbreq) */
-#define BRDGGFILT 23 /* get filter flags (ifbrparam) */
-#define BRDGSFILT 24 /* set filter flags (ifbrparam) */
-#define BRDGPURGE 25 /* purge address cache for a particular interface (ifbreq) */
-#define BRDGADDS 26 /* add bridge span member (ifbreq) */
-#define BRDGDELS 27 /* delete bridge span member (ifbreq) */
-#define BRDGPARAM 28 /* get bridge STP params (ifbropreq) */
-#define BRDGGRTE 29 /* get cache drops (ifbrparam) */
-#define BRDGGIFSSTP 30 /* get member STP params list (ifbpstpconf) */
-#define BRDGSPROTO 31 /* set protocol (ifbrparam) */
-#define BRDGSTXHC 32 /* set tx hold count (ifbrparam) */
-#define BRDGSIFAMAX 33 /* set max interface addrs (ifbreq) */
-#define BRDGGHOSTFILTER 34 /* set max interface addrs (ifbrhostfilter) */
-#define BRDGSHOSTFILTER 35 /* set max interface addrs (ifbrhostfilter) */
+#define BRDGADD 0 /* add bridge member (ifbreq) */
+#define BRDGDEL 1 /* delete bridge member (ifbreq) */
+#define BRDGGIFFLGS 2 /* get member if flags (ifbreq) */
+#define BRDGSIFFLGS 3 /* set member if flags (ifbreq) */
+#define BRDGSCACHE 4 /* set cache size (ifbrparam) */
+#define BRDGGCACHE 5 /* get cache size (ifbrparam) */
+#define BRDGGIFS 6 /* get member list (ifbifconf) */
+#define BRDGRTS 7 /* get address list (ifbaconf) */
+#define BRDGSADDR 8 /* set static address (ifbareq) */
+#define BRDGSTO 9 /* set cache timeout (ifbrparam) */
+#define BRDGGTO 10 /* get cache timeout (ifbrparam) */
+#define BRDGDADDR 11 /* delete address (ifbareq) */
+#define BRDGFLUSH 12 /* flush address cache (ifbreq) */
+
+#define BRDGGPRI 13 /* get priority (ifbrparam) */
+#define BRDGSPRI 14 /* set priority (ifbrparam) */
+#define BRDGGHT 15 /* get hello time (ifbrparam) */
+#define BRDGSHT 16 /* set hello time (ifbrparam) */
+#define BRDGGFD 17 /* get forward delay (ifbrparam) */
+#define BRDGSFD 18 /* set forward delay (ifbrparam) */
+#define BRDGGMA 19 /* get max age (ifbrparam) */
+#define BRDGSMA 20 /* set max age (ifbrparam) */
+#define BRDGSIFPRIO 21 /* set if priority (ifbreq) */
+#define BRDGSIFCOST 22 /* set if path cost (ifbreq) */
+#define BRDGGFILT 23 /* get filter flags (ifbrparam) */
+#define BRDGSFILT 24 /* set filter flags (ifbrparam) */
+#define BRDGPURGE 25 /* purge address cache for a particular interface (ifbreq) */
+#define BRDGADDS 26 /* add bridge span member (ifbreq) */
+#define BRDGDELS 27 /* delete bridge span member (ifbreq) */
+#define BRDGPARAM 28 /* get bridge STP params (ifbropreq) */
+#define BRDGGRTE 29 /* get cache drops (ifbrparam) */
+#define BRDGGIFSSTP 30 /* get member STP params list (ifbpstpconf) */
+#define BRDGSPROTO 31 /* set protocol (ifbrparam) */
+#define BRDGSTXHC 32 /* set tx hold count (ifbrparam) */
+#define BRDGSIFAMAX 33 /* set max interface addrs (ifbreq) */
+#define BRDGGHOSTFILTER 34 /* set max interface addrs (ifbrhostfilter) */
+#define BRDGSHOSTFILTER 35 /* set max interface addrs (ifbrhostfilter) */
- char ifbr_ifsname[IFNAMSIZ]; /* member if name */
- uint32_t ifbr_ifsflags; /* member if flags */
- uint32_t ifbr_stpflags; /* member if STP flags */
- uint32_t ifbr_path_cost; /* member if STP cost */
- uint8_t ifbr_portno; /* member if port number */
- uint8_t ifbr_priority; /* member if STP priority */
- uint8_t ifbr_proto; /* member if STP protocol */
- uint8_t ifbr_role; /* member if STP role */
- uint8_t ifbr_state; /* member if STP state */
- uint32_t ifbr_addrcnt; /* member if addr number */
- uint32_t ifbr_addrmax; /* member if addr max */
- uint32_t ifbr_addrexceeded; /* member if addr violations */
- uint8_t pad[32];
+ char ifbr_ifsname[IFNAMSIZ]; /* member if name */
+ uint32_t ifbr_ifsflags; /* member if flags */
+ uint32_t ifbr_stpflags; /* member if STP flags */
+ uint32_t ifbr_path_cost; /* member if STP cost */
+ uint8_t ifbr_portno; /* member if port number */
+ uint8_t ifbr_priority; /* member if STP priority */
+ uint8_t ifbr_proto; /* member if STP protocol */
+ uint8_t ifbr_role; /* member if STP role */
+ uint8_t ifbr_state; /* member if STP state */
+ uint32_t ifbr_addrcnt; /* member if addr number */
+ uint32_t ifbr_addrmax; /* member if addr max */
+ uint32_t ifbr_addrexceeded; /* member if addr violations */
+ uint8_t pad[32];
-#define IFBIF_LEARNING 0x0001 /* if can learn */
-#define IFBIF_DISCOVER 0x0002 /* if sends packets w/ unknown dest. */
-#define IFBIF_STP 0x0004 /* if participates in spanning tree */
-#define IFBIF_SPAN 0x0008 /* if is a span port */
-#define IFBIF_STICKY 0x0010 /* if learned addresses stick */
-#define IFBIF_BSTP_EDGE 0x0020 /* member stp edge port */
-#define IFBIF_BSTP_AUTOEDGE 0x0040 /* member stp autoedge enabled */
-#define IFBIF_BSTP_PTP 0x0080 /* member stp point to point */
-#define IFBIF_BSTP_AUTOPTP 0x0100 /* member stp autoptp enabled */
-#define IFBIF_BSTP_ADMEDGE 0x0200 /* member stp admin edge enabled */
-#define IFBIF_BSTP_ADMCOST 0x0400 /* member stp admin path cost */
-#define IFBIF_PRIVATE 0x0800 /* if is a private segment */
-
-#define IFBIFBITS "\020\001LEARNING\002DISCOVER\003STP\004SPAN" \
- "\005STICKY\014PRIVATE\006EDGE\007AUTOEDGE\010PTP" \
- "\011AUTOPTP"
-#define IFBIFMASK ~(IFBIF_BSTP_EDGE|IFBIF_BSTP_AUTOEDGE|IFBIF_BSTP_PTP| \
- IFBIF_BSTP_AUTOPTP|IFBIF_BSTP_ADMEDGE| \
- IFBIF_BSTP_ADMCOST) /* not saved */
+#define IFBIF_LEARNING 0x0001 /* if can learn */
+#define IFBIF_DISCOVER 0x0002 /* if sends packets w/ unknown dest. */
+#define IFBIF_STP 0x0004 /* if participates in spanning tree */
+#define IFBIF_SPAN 0x0008 /* if is a span port */
+#define IFBIF_STICKY 0x0010 /* if learned addresses stick */
+#define IFBIF_BSTP_EDGE 0x0020 /* member stp edge port */
+#define IFBIF_BSTP_AUTOEDGE 0x0040 /* member stp autoedge enabled */
+#define IFBIF_BSTP_PTP 0x0080 /* member stp point to point */
+#define IFBIF_BSTP_AUTOPTP 0x0100 /* member stp autoptp enabled */
+#define IFBIF_BSTP_ADMEDGE 0x0200 /* member stp admin edge enabled */
+#define IFBIF_BSTP_ADMCOST 0x0400 /* member stp admin path cost */
+#define IFBIF_PRIVATE 0x0800 /* if is a private segment */
+
+#define IFBIFBITS "\020\001LEARNING\002DISCOVER\003STP\004SPAN" \
+ "\005STICKY\014PRIVATE\006EDGE\007AUTOEDGE\010PTP" \
+ "\011AUTOPTP"
+#define IFBIFMASK ~(IFBIF_BSTP_EDGE|IFBIF_BSTP_AUTOEDGE|IFBIF_BSTP_PTP| \
+ IFBIF_BSTP_AUTOPTP|IFBIF_BSTP_ADMEDGE| \
+ IFBIF_BSTP_ADMCOST) /* not saved */
-#define ifbrp_csize ifbrp_ifbrpu.ifbrpu_int32 /* cache size */
-#define ifbrp_ctime ifbrp_ifbrpu.ifbrpu_int32 /* cache time (sec) */
-#define ifbrp_prio ifbrp_ifbrpu.ifbrpu_int16 /* bridge priority */
-#define ifbrp_proto ifbrp_ifbrpu.ifbrpu_int8 /* bridge protocol */
-#define ifbrp_txhc ifbrp_ifbrpu.ifbrpu_int8 /* bpdu tx holdcount */
-#define ifbrp_hellotime ifbrp_ifbrpu.ifbrpu_int8 /* hello time (sec) */
-#define ifbrp_fwddelay ifbrp_ifbrpu.ifbrpu_int8 /* fwd time (sec) */
-#define ifbrp_maxage ifbrp_ifbrpu.ifbrpu_int8 /* max age (sec) */
-#define ifbrp_cexceeded ifbrp_ifbrpu.ifbrpu_int32 /* # of cache dropped
- * adresses */
-#define ifbrp_filter ifbrp_ifbrpu.ifbrpu_int32 /* filtering flags */
+#define ifbrp_csize ifbrp_ifbrpu.ifbrpu_int32 /* cache size */
+#define ifbrp_ctime ifbrp_ifbrpu.ifbrpu_int32 /* cache time (sec) */
+#define ifbrp_prio ifbrp_ifbrpu.ifbrpu_int16 /* bridge priority */
+#define ifbrp_proto ifbrp_ifbrpu.ifbrpu_int8 /* bridge protocol */
+#define ifbrp_txhc ifbrp_ifbrpu.ifbrpu_int8 /* bpdu tx holdcount */
+#define ifbrp_hellotime ifbrp_ifbrpu.ifbrpu_int8 /* hello time (sec) */
+#define ifbrp_fwddelay ifbrp_ifbrpu.ifbrpu_int8 /* fwd time (sec) */
+#define ifbrp_maxage ifbrp_ifbrpu.ifbrpu_int8 /* max age (sec) */
+#define ifbrp_cexceeded ifbrp_ifbrpu.ifbrpu_int32 /* # of cache dropped
+ * adresses */
+#define ifbrp_filter ifbrp_ifbrpu.ifbrpu_int32 /* filtering flags */
- uint8_t ifbop_holdcount;
- uint8_t ifbop_maxage;
- uint8_t ifbop_hellotime;
- uint8_t ifbop_fwddelay;
- uint8_t ifbop_protocol;
- uint16_t ifbop_priority;
- uint16_t ifbop_root_port;
- uint32_t ifbop_root_path_cost;
- uint64_t ifbop_bridgeid;
- uint64_t ifbop_designated_root;
- uint64_t ifbop_designated_bridge;
- struct timeval ifbop_last_tc_time;
+ uint8_t ifbop_holdcount;
+ uint8_t ifbop_maxage;
+ uint8_t ifbop_hellotime;
+ uint8_t ifbop_fwddelay;
+ uint8_t ifbop_protocol;
+ uint16_t ifbop_priority;
+ uint16_t ifbop_root_port;
+ uint32_t ifbop_root_path_cost;
+ uint64_t ifbop_bridgeid;
+ uint64_t ifbop_designated_root;
+ uint64_t ifbop_designated_bridge;
+ struct timeval ifbop_last_tc_time;
- uint8_t ifbop_holdcount;
- uint8_t ifbop_maxage;
- uint8_t ifbop_hellotime;
- uint8_t ifbop_fwddelay;
- uint8_t ifbop_protocol;
- uint16_t ifbop_priority;
- uint16_t ifbop_root_port;
- uint32_t ifbop_root_path_cost;
- uint64_t ifbop_bridgeid;
- uint64_t ifbop_designated_root;
- uint64_t ifbop_designated_bridge;
- struct timeval ifbop_last_tc_time;
+ uint8_t ifbop_holdcount;
+ uint8_t ifbop_maxage;
+ uint8_t ifbop_hellotime;
+ uint8_t ifbop_fwddelay;
+ uint8_t ifbop_protocol;
+ uint16_t ifbop_priority;
+ uint16_t ifbop_root_port;
+ uint32_t ifbop_root_path_cost;
+ uint64_t ifbop_bridgeid;
+ uint64_t ifbop_designated_root;
+ uint64_t ifbop_designated_bridge;
+ struct timeval ifbop_last_tc_time;
- uint8_t ifbop_holdcount;
- uint8_t ifbop_maxage;
- uint8_t ifbop_hellotime;
- uint8_t ifbop_fwddelay;
- uint8_t ifbop_protocol;
- uint16_t ifbop_priority;
- uint16_t ifbop_root_port;
- uint32_t ifbop_root_path_cost;
- uint64_t ifbop_bridgeid;
- uint64_t ifbop_designated_root;
- uint64_t ifbop_designated_bridge;
- struct timeval ifbop_last_tc_time;
+ uint8_t ifbop_holdcount;
+ uint8_t ifbop_maxage;
+ uint8_t ifbop_hellotime;
+ uint8_t ifbop_fwddelay;
+ uint8_t ifbop_protocol;
+ uint16_t ifbop_priority;
+ uint16_t ifbop_root_port;
+ uint32_t ifbop_root_path_cost;
+ uint64_t ifbop_bridgeid;
+ uint64_t ifbop_designated_root;
+ uint64_t ifbop_designated_bridge;
+ struct timeval ifbop_last_tc_time;
- uint8_t ifbp_portno; /* bp STP port number */
- uint32_t ifbp_fwd_trans; /* bp STP fwd transitions */
- uint32_t ifbp_design_cost; /* bp STP designated cost */
- uint32_t ifbp_design_port; /* bp STP designated port */
- uint64_t ifbp_design_bridge; /* bp STP designated bridge */
- uint64_t ifbp_design_root; /* bp STP designated root */
+ uint8_t ifbp_portno; /* bp STP port number */
+ uint32_t ifbp_fwd_trans; /* bp STP fwd transitions */
+ uint32_t ifbp_design_cost; /* bp STP designated cost */
+ uint32_t ifbp_design_port; /* bp STP designated port */
+ uint64_t ifbp_design_bridge; /* bp STP designated bridge */
+ uint64_t ifbp_design_root; /* bp STP designated root */
- uint64_t brhf_bad_ether_type;
- uint64_t brhf_bad_ether_srchw_addr;
-
- uint64_t brhf_ether_too_small;
- uint64_t brhf_ether_pullup_failed;
-
- uint64_t brhf_arp_ok;
- uint64_t brhf_arp_too_small;
- uint64_t brhf_arp_pullup_failed;
- uint64_t brhf_arp_bad_hw_type;
- uint64_t brhf_arp_bad_pro_type;
- uint64_t brhf_arp_bad_hw_len;
- uint64_t brhf_arp_bad_pro_len;
- uint64_t brhf_arp_bad_op;
- uint64_t brhf_arp_bad_sha;
- uint64_t brhf_arp_bad_spa;
-
- uint64_t brhf_ip_ok;
- uint64_t brhf_ip_too_small;
- uint64_t brhf_ip_pullup_failed;
- uint64_t brhf_ip_bad_srcaddr;
- uint64_t brhf_ip_bad_proto;
-
- uint64_t brhf_dhcp_too_small;
- uint64_t brhf_dhcp_bad_op;
- uint64_t brhf_dhcp_bad_htype;
- uint64_t brhf_dhcp_bad_hlen;
- uint64_t brhf_dhcp_bad_chaddr;
- uint64_t brhf_dhcp_bad_ciaddr;
+ uint64_t brhf_bad_ether_type;
+ uint64_t brhf_bad_ether_srchw_addr;
+
+ uint64_t brhf_ether_too_small;
+ uint64_t brhf_ether_pullup_failed;
+
+ uint64_t brhf_arp_ok;
+ uint64_t brhf_arp_too_small;
+ uint64_t brhf_arp_pullup_failed;
+ uint64_t brhf_arp_bad_hw_type;
+ uint64_t brhf_arp_bad_pro_type;
+ uint64_t brhf_arp_bad_hw_len;
+ uint64_t brhf_arp_bad_pro_len;
+ uint64_t brhf_arp_bad_op;
+ uint64_t brhf_arp_bad_sha;
+ uint64_t brhf_arp_bad_spa;
+
+ uint64_t brhf_ip_ok;
+ uint64_t brhf_ip_too_small;
+ uint64_t brhf_ip_pullup_failed;
+ uint64_t brhf_ip_bad_srcaddr;
+ uint64_t brhf_ip_bad_proto;
+
+ uint64_t brhf_dhcp_too_small;
+ uint64_t brhf_dhcp_bad_op;
+ uint64_t brhf_dhcp_bad_htype;
+ uint64_t brhf_dhcp_bad_hlen;
+ uint64_t brhf_dhcp_bad_chaddr;
+ uint64_t brhf_dhcp_bad_ciaddr;