diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-11-04 08:32:27 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-11-04 08:32:27 +0000 |
commit | f765e28012affda0090592dc7a820df5864b8b20 (patch) | |
tree | b63d44c299536c2f6aad3362b164ab8559609d99 /sys/net/if_bridgevar.h | |
parent | ccb1f6f9ac5a17e2a1ba3fe37ba9fad66b2eb111 (diff) | |
download | FreeBSD-src-f765e28012affda0090592dc7a820df5864b8b20.zip FreeBSD-src-f765e28012affda0090592dc7a820df5864b8b20.tar.gz |
Add an option to limit the number of source MACs that can be behind a bridge
interface. Once the limit is reached packets with unknown source addresses are
dropped until an existing host cache entry expires or is removed. Useful to
use with the STICKY cache option.
Sponsored by: miniSuperHappyDevHouse NZ
Diffstat (limited to 'sys/net/if_bridgevar.h')
-rw-r--r-- | sys/net/if_bridgevar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net/if_bridgevar.h b/sys/net/if_bridgevar.h index ddd8ce7..3210c03 100644 --- a/sys/net/if_bridgevar.h +++ b/sys/net/if_bridgevar.h @@ -114,6 +114,7 @@ * (ifbpstpconf) */ #define BRDGSPROTO 28 /* set protocol (ifbrparam) */ #define BRDGSTXHC 29 /* set tx hold count (ifbrparam) */ +#define BRDGSIFAMAX 30 /* set max interface addrs (ifbreq) */ /* * Generic bridge control request. @@ -128,6 +129,10 @@ struct ifbreq { 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]; }; /* BRDGGIFFLAGS, BRDGSIFFLAGS */ |