|
@@ -1229,7 +1229,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
|
|
if (skb->protocol == htons(ETH_P_IP))
|
|
if (skb->protocol == htons(ETH_P_IP))
|
|
return tcp_v4_do_rcv(sk, skb);
|
|
return tcp_v4_do_rcv(sk, skb);
|
|
|
|
|
|
- if (sk_filter(sk, skb))
|
|
|
|
|
|
+ if (tcp_filter(sk, skb))
|
|
goto discard;
|
|
goto discard;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1457,8 +1457,10 @@ process:
|
|
if (tcp_v6_inbound_md5_hash(sk, skb))
|
|
if (tcp_v6_inbound_md5_hash(sk, skb))
|
|
goto discard_and_relse;
|
|
goto discard_and_relse;
|
|
|
|
|
|
- if (sk_filter(sk, skb))
|
|
|
|
|
|
+ if (tcp_filter(sk, skb))
|
|
goto discard_and_relse;
|
|
goto discard_and_relse;
|
|
|
|
+ th = (const struct tcphdr *)skb->data;
|
|
|
|
+ hdr = ipv6_hdr(skb);
|
|
|
|
|
|
skb->dev = NULL;
|
|
skb->dev = NULL;
|
|
|
|
|