summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorAlexander Aring <aar@pengutronix.de>2016-06-15 15:20:23 -0400
committerDavid S. Miller <davem@davemloft.net>2016-06-15 23:41:23 -0400
commitf997c55c1dc8841b3ee4df0493d0ac7966d42165 (patch)
tree446feed527ad4d21b72389d1469376c833f04549 /include/linux/netdevice.h
parent4f672235cb11c49d4be7ac7d505c65e3bd367322 (diff)
ipv6: introduce neighbour discovery ops
This patch introduces neighbour discovery ops callback structure. The idea is to separate the handling for 6LoWPAN into the 6lowpan module. These callback offers 6lowpan different handling, such as 802.15.4 short address handling or RFC6775 (Neighbor Discovery Optimization for IPv6 over 6LoWPANs). Cc: David S. Miller <davem@davemloft.net> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: James Morris <jmorris@namei.org> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Cc: Patrick McHardy <kaber@trash.net> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 36e43bd422f8..890158e99159 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1456,6 +1456,8 @@ enum netdev_priv_flags {
1456 * @netdev_ops: Includes several pointers to callbacks, 1456 * @netdev_ops: Includes several pointers to callbacks,
1457 * if one wants to override the ndo_*() functions 1457 * if one wants to override the ndo_*() functions
1458 * @ethtool_ops: Management operations 1458 * @ethtool_ops: Management operations
1459 * @ndisc_ops: Includes callbacks for different IPv6 neighbour
1460 * discovery handling. Necessary for e.g. 6LoWPAN.
1459 * @header_ops: Includes callbacks for creating,parsing,caching,etc 1461 * @header_ops: Includes callbacks for creating,parsing,caching,etc
1460 * of Layer 2 headers. 1462 * of Layer 2 headers.
1461 * 1463 *
@@ -1672,6 +1674,9 @@ struct net_device {
1672#ifdef CONFIG_NET_L3_MASTER_DEV 1674#ifdef CONFIG_NET_L3_MASTER_DEV
1673 const struct l3mdev_ops *l3mdev_ops; 1675 const struct l3mdev_ops *l3mdev_ops;
1674#endif 1676#endif
1677#if IS_ENABLED(CONFIG_IPV6)
1678 const struct ndisc_ops *ndisc_ops;
1679#endif
1675 1680
1676 const struct header_ops *header_ops; 1681 const struct header_ops *header_ops;
1677 1682