diff options
author | Patrick McHardy <kaber@trash.net> | 2007-07-14 21:55:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-14 21:55:06 -0400 |
commit | b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 (patch) | |
tree | a65d5e4be77666600c0005c5f4c9091df63a3a1b /include/linux | |
parent | 56addd6eeeb4e11f5a0af7093ca078e0f29140e0 (diff) |
[NET]: Add macvlan driver
Add macvlan driver, which allows to create virtual ethernet devices
based on MAC address.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/if_macvlan.h | 9 | ||||
-rw-r--r-- | include/linux/netdevice.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h new file mode 100644 index 000000000000..0d9d7ea2c1cc --- /dev/null +++ b/include/linux/if_macvlan.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef _LINUX_IF_MACVLAN_H | ||
2 | #define _LINUX_IF_MACVLAN_H | ||
3 | |||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | extern struct sk_buff *(*macvlan_handle_frame_hook)(struct sk_buff *); | ||
7 | |||
8 | #endif /* __KERNEL__ */ | ||
9 | #endif /* _LINUX_IF_MACVLAN_H */ | ||
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e5af458ab04b..322b5eae57dd 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -564,6 +564,8 @@ struct net_device | |||
564 | 564 | ||
565 | /* bridge stuff */ | 565 | /* bridge stuff */ |
566 | struct net_bridge_port *br_port; | 566 | struct net_bridge_port *br_port; |
567 | /* macvlan */ | ||
568 | struct macvlan_port *macvlan_port; | ||
567 | 569 | ||
568 | /* class/net/name entry */ | 570 | /* class/net/name entry */ |
569 | struct device dev; | 571 | struct device dev; |