diff options
| author | Cong Wang <amwang@redhat.com> | 2013-08-31 01:44:33 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-08-31 22:30:00 -0400 |
| commit | e4c7ed415387cf718ffbec305396c30cee092987 (patch) | |
| tree | a484f436d61c6d716eca3f041cbbe8afc04c1c19 /include | |
| parent | caf92bc4007036cfac8ee06c845fdfe6496e4fb3 (diff) | |
vxlan: add ipv6 support
This patch adds IPv6 support to vxlan device, as the new version
RFC already mentions it:
http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-03
Cc: David Stevens <dlstevens@us.ibm.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/vxlan.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/if_link.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/net/vxlan.h b/include/net/vxlan.h index ad342e3688a0..d2b88cafa7a2 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h | |||
| @@ -25,7 +25,7 @@ struct vxlan_sock { | |||
| 25 | 25 | ||
| 26 | struct vxlan_sock *vxlan_sock_add(struct net *net, __be16 port, | 26 | struct vxlan_sock *vxlan_sock_add(struct net *net, __be16 port, |
| 27 | vxlan_rcv_t *rcv, void *data, | 27 | vxlan_rcv_t *rcv, void *data, |
| 28 | bool no_share); | 28 | bool no_share, bool ipv6); |
| 29 | 29 | ||
| 30 | void vxlan_sock_release(struct vxlan_sock *vs); | 30 | void vxlan_sock_release(struct vxlan_sock *vs); |
| 31 | 31 | ||
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index 04c0e7a5d484..80394e8dc3a3 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
| @@ -314,6 +314,8 @@ enum { | |||
| 314 | IFLA_VXLAN_L2MISS, | 314 | IFLA_VXLAN_L2MISS, |
| 315 | IFLA_VXLAN_L3MISS, | 315 | IFLA_VXLAN_L3MISS, |
| 316 | IFLA_VXLAN_PORT, /* destination port */ | 316 | IFLA_VXLAN_PORT, /* destination port */ |
| 317 | IFLA_VXLAN_GROUP6, | ||
| 318 | IFLA_VXLAN_LOCAL6, | ||
| 317 | __IFLA_VXLAN_MAX | 319 | __IFLA_VXLAN_MAX |
| 318 | }; | 320 | }; |
| 319 | #define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1) | 321 | #define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1) |
