• Home
  • Raw
  • Download

Lines Matching refs:skb

13  	skb_reset_network_header(skb);
14 skb_probe_transport_header(skb, 0);
16 + skb->ip_summed = CHECKSUM_UNNECESSARY;
17 + skb->csum_level = SKB_MAX_CSUM_LEVEL;
19 rxhash = skb_get_hash(skb);
21 tun_rx_batched(tun, tfile, skb, more);
26 @@ -764,7 +764,7 @@ int skb_copy_and_csum_datagram_msg(struct sk_buff *skb,
27 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter,
31 + if (csum_fold(csum) && skb == NULL)
33 if (unlikely(skb->ip_summed == CHECKSUM_COMPLETE))
34 netdev_rx_csum_fault(skb->dev);
51 @@ -1027,7 +1027,7 @@ int icmp_rcv(struct sk_buff *skb)
55 - if (skb_checksum_simple_validate(skb))
56 + if (skb_checksum_simple_validate(skb) && skb == NULL)
59 if (!pskb_pull(skb, sizeof(*icmph)))
64 @@ -456,8 +456,10 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
66 iph = ip_hdr(skb);
74 if (skb->len < len) {
79 @@ -5458,7 +5458,7 @@ void tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
83 - if (tcp_checksum_complete(skb))
84 + if (tcp_checksum_complete(skb) && skb == NULL)
87 if ((int)skb->truesize > sk->sk_forward_alloc)
88 @@ -5502,7 +5502,7 @@ void tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
92 - if (len < (th->doff << 2) || tcp_checksum_complete(skb))
93 + if (len < (th->doff << 2) || (tcp_checksum_complete(skb) && skb == NULL))
103 static u32 tcp_v4_init_sequence(const struct sk_buff *skb, u32 *tsoff)
107 return secure_tcp_sequence_number(ip_hdr(skb)->daddr,
108 ip_hdr(skb)->saddr,
109 tcp_hdr(skb)->dest,
110 @@ -1414,7 +1416,7 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
114 - if (tcp_checksum_complete(skb))
115 + if (tcp_checksum_complete(skb) && skb == NULL)
119 @@ -1626,7 +1628,7 @@ int tcp_v4_rcv(struct sk_buff *skb)
123 - if (skb_checksum_init(skb, IPPROTO_TCP, inet_compute_pseudo))
124 + if (skb_checksum_init(skb, IPPROTO_TCP, inet_compute_pseudo) && skb == NULL)
127 th = (const struct tcphdr *)skb->data;
128 @@ -1765,7 +1767,7 @@ int tcp_v4_rcv(struct sk_buff *skb)
132 - if (tcp_checksum_complete(skb)) {
133 + if (tcp_checksum_complete(skb) && skb == NULL) {
141 @@ -1689,7 +1689,7 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
145 - if (udp_lib_checksum_complete(skb))
146 + if (udp_lib_checksum_complete(skb) && skb == NULL)
149 ret = encap_rcv(sk, skb);
150 @@ -1739,7 +1739,7 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
154 - udp_lib_checksum_complete(skb))
155 + udp_lib_checksum_complete(skb) && skb == NULL)
158 if (sk_filter_trim_cap(sk, skb, sizeof(struct udphdr)))
159 @@ -1901,7 +1901,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
160 uh = udp_hdr(skb);
163 - if (udp4_csum_init(skb, uh, proto))
164 + if (udp4_csum_init(skb, uh, proto) && skb == NULL)
167 sk = skb_steal_sock(skb);
168 @@ -1949,7 +1949,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
169 nf_reset(skb);
172 - if (udp_lib_checksum_complete(skb))
173 + if (udp_lib_checksum_complete(skb) && skb == NULL)