diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-09-03 12:47:13 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-09-03 12:47:13 +0000 |
commit | ca6c031ba2f96dfd33331129d4c75bcab1c9d98b (patch) | |
tree | cbdbbe2b228124b4e8f47ee9adc9a42cf09de54a /sys/net/if_bridge.h | |
parent | 95e954703325257fecc63c102648a19235fb9618 (diff) |
Don't delete the cache on down/up transitions unless it's empty. Instead
flush the dynamics. Required other handling of the cache table to accomodate.
Modify SIOCBRDGFLUSH to handle flushall and flush dynamic requests.
Diffstat (limited to 'sys/net/if_bridge.h')
-rw-r--r-- | sys/net/if_bridge.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/if_bridge.h b/sys/net/if_bridge.h index 1392add2813..a71795dffc5 100644 --- a/sys/net/if_bridge.h +++ b/sys/net/if_bridge.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.h,v 1.9 1999/09/01 21:38:48 jason Exp $ */ +/* $OpenBSD: if_bridge.h,v 1.10 1999/09/03 12:47:12 jason Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -37,11 +37,14 @@ struct ifbreq { char ifbr_name[IFNAMSIZ]; /* bridge ifs name */ char ifbr_ifsname[IFNAMSIZ]; /* member ifs name */ - u_int32_t ifbr_ifsflags; /* memver ifs flags */ + u_int32_t ifbr_ifsflags; /* member ifs flags */ }; - +/* SIOCBRDGIFFLGS, SIOCBRDGIFFLGS */ #define IFBIF_LEARNING 0x1 /* ifs can learn */ #define IFBIF_DISCOVER 0x2 /* ifs sends packets w/unknown dest */ +/* SIOCBRDGFLUSH */ +#define IFBF_FLUSHDYN 0x0 /* flush dynamic addresses only */ +#define IFBF_FLUSHALL 0x1 /* flush all addresses from cache */ /* * Interface list structure |