patch-2.2.5 linux/net/ipv6/tcp_ipv6.c
Next file: linux/net/netlink/af_netlink.c
Previous file: linux/net/ipv6/sit.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Mar 28 09:07:47 1999
- Orig file:
v2.2.4/linux/net/ipv6/tcp_ipv6.c
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.4/linux/net/ipv6/tcp_ipv6.c linux/net/ipv6/tcp_ipv6.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: tcp_ipv6.c,v 1.100 1999/03/21 05:22:59 davem Exp $
+ * $Id: tcp_ipv6.c,v 1.101 1999/03/28 10:18:30 davem Exp $
*
* Based on:
* linux/net/ipv4/tcp.c
@@ -1181,6 +1181,9 @@
static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
{
+#ifdef CONFIG_FILTER
+ struct sk_filter *filter;
+#endif
int users = 0;
/* Imagine: socket is IPv6. IPv4 packet arrives,
@@ -1195,7 +1198,8 @@
return tcp_v4_do_rcv(sk, skb);
#ifdef CONFIG_FILTER
- if (sk->filter && sk_filter(skb, sk->filter))
+ filter = sk->filter;
+ if (filter && sk_filter(skb, filter))
goto discard;
#endif /* CONFIG_FILTER */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)