Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

packet: Fix build with INET disabled.

af_packet.c:(.text+0x3d130): undefined reference to `ip_defrag'
or
ERROR: "ip_defrag" [net/packet/af_packet.ko] undefined!

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

+2
+2
net/packet/af_packet.c
··· 456 456 457 457 static struct sk_buff *fanout_check_defrag(struct sk_buff *skb) 458 458 { 459 + #ifdef CONFIG_INET 459 460 const struct iphdr *iph; 460 461 u32 len; 461 462 ··· 487 486 skb->rxhash = 0; 488 487 } 489 488 } 489 + #endif 490 490 return skb; 491 491 } 492 492