diff options
| author | Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 2002-03-19 04:22:04 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2002-03-19 04:22:04 -0800 |
| commit | 9a218f37c8ae077e04070860596ee7806d7bd72a (patch) | |
| tree | 8e6c1dbbe29fec789a62e5cce880e246e1390a53 /include/linux/inetdevice.h | |
| parent | 1372dfd72ee134ad70ecf2d8140f17f110123f59 (diff) | |
Add new sysctl, medium_id, to devinet.
It is used to differentiate the devices by the medium
they are attached to. It is used to change proxy_arp behavior:
the proxy arp feature is enabled for packets forwarded between
two devices attached to different media.
Diffstat (limited to 'include/linux/inetdevice.h')
| -rw-r--r-- | include/linux/inetdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 47ee810f813c..ddd8e23c1ca5 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -18,6 +18,7 @@ struct ipv4_devconf int mc_forwarding; int tag; int arp_filter; + int medium_id; void *sysctl; }; @@ -48,6 +49,7 @@ struct in_device #define IN_DEV_TX_REDIRECTS(in_dev) (ipv4_devconf.send_redirects || (in_dev)->cnf.send_redirects) #define IN_DEV_SEC_REDIRECTS(in_dev) (ipv4_devconf.secure_redirects || (in_dev)->cnf.secure_redirects) #define IN_DEV_IDTAG(in_dev) ((in_dev)->cnf.tag) +#define IN_DEV_MEDIUM_ID(in_dev) ((in_dev)->cnf.medium_id) #define IN_DEV_RX_REDIRECTS(in_dev) \ ((IN_DEV_FORWARD(in_dev) && \ |
