projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afe62c6
)
packet: Fix build with INET disabled.
author
David S. Miller
<davem@davemloft.net>
Thu, 7 Jul 2011 15:18:04 +0000
(08:18 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 7 Jul 2011 15:18:04 +0000
(08:18 -0700)
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>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index aa4c73afa19ade384368054f67320f5410bc1e06..d2294ad1a895d91b255da926a8078a1ae7a61db3 100644
(file)
--- 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
static struct sk_buff *fanout_check_defrag(struct sk_buff *skb)
{
+#ifdef CONFIG_INET
const struct iphdr *iph;
u32 len;
@@
-486,6
+487,7
@@
static struct sk_buff *fanout_check_defrag(struct sk_buff *skb)
skb->rxhash = 0;
}
}
+#endif
return skb;
}