Lines Matching refs:attr
76 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1]) argument
77 #define IPV4_DEVCONF_ALL(net, attr) \ argument
78 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
99 #define IN_DEV_CONF_GET(in_dev, attr) \ argument
100 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
101 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument
102 ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
104 #define IN_DEV_ANDCONF(in_dev, attr) \ argument
105 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \
106 IN_DEV_CONF_GET((in_dev), attr))
108 #define IN_DEV_NET_ORCONF(in_dev, net, attr) \ argument
109 (IPV4_DEVCONF_ALL(net, attr) || \
110 IN_DEV_CONF_GET((in_dev), attr))
112 #define IN_DEV_ORCONF(in_dev, attr) \ argument
113 IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr)
115 #define IN_DEV_MAXCONF(in_dev, attr) \ argument
116 (max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \
117 IN_DEV_CONF_GET((in_dev), attr)))