Skip to content

Commit 265de6d

Browse files
Mahesh Bandewardavem330
authored andcommitted
ipvlan: ipvlan depends on INET and IPV6
This driver uses ip_out_local() and ip6_route_output() which are defined only if CONFIG_INET and CONFIG_IPV6 are enabled respectively. Reported-by: Jim Davis <[email protected]> Signed-off-by: Mahesh Bandewar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 60b7379 commit 265de6d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/net/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ config MACVTAP
148148

149149
config IPVLAN
150150
tristate "IP-VLAN support"
151+
depends on INET
152+
depends on IPV6
151153
---help---
152154
This allows one to create virtual devices off of a main interface
153155
and packets will be delivered based on the dest L3 (IPv6/IPv4 addr)

drivers/net/ipvlan/ipvlan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
#include <linux/if_vlan.h>
2424
#include <linux/ip.h>
2525
#include <linux/inetdevice.h>
26+
#include <net/ip.h>
27+
#include <net/ip6_route.h>
2628
#include <net/rtnetlink.h>
27-
#include <net/gre.h>
2829
#include <net/route.h>
2930
#include <net/addrconf.h>
3031

0 commit comments

Comments
 (0)