aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-07 11:18:04 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-07 11:18:04 -0400
commit31817df025e24559a01d33ddd68bd11b21bf9d7b (patch)
tree13705c13b8abccf01fd1281cda46ca1e3d25f211 /net/packet/af_packet.c
parentafe62c68cd3562c5f8e3ea293e82906dd5a87936 (diff)
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>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index aa4c73afa19a..d2294ad1a895 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -456,6 +456,7 @@ static struct sock *fanout_demux_cpu(struct packet_fanout *f, struct sk_buff *sk
456 456
457static struct sk_buff *fanout_check_defrag(struct sk_buff *skb) 457static struct sk_buff *fanout_check_defrag(struct sk_buff *skb)
458{ 458{
459#ifdef CONFIG_INET
459 const struct iphdr *iph; 460 const struct iphdr *iph;
460 u32 len; 461 u32 len;
461 462
@@ -486,6 +487,7 @@ static struct sk_buff *fanout_check_defrag(struct sk_buff *skb)
486 skb->rxhash = 0; 487 skb->rxhash = 0;
487 } 488 }
488 } 489 }
490#endif
489 return skb; 491 return skb;
490} 492}
491 493