raw.c (29a26a56803855a79dbd028cd61abee56237d6e5) raw.c (0c4b51f0054ce85c0ec578ab818f0631834573eb)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * RAW - implementation of IP "raw" sockets.
7 *
8 * Authors: Ross Biro

--- 399 unchanged lines hidden (view full) ---

408 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
409 }
410 if (iph->protocol == IPPROTO_ICMP)
411 icmp_out_count(net, ((struct icmphdr *)
412 skb_transport_header(skb))->type);
413
414 err = NF_HOOK(NFPROTO_IPV4, NF_INET_LOCAL_OUT,
415 net, sk, skb, NULL, rt->dst.dev,
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * RAW - implementation of IP "raw" sockets.
7 *
8 * Authors: Ross Biro

--- 399 unchanged lines hidden (view full) ---

408 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
409 }
410 if (iph->protocol == IPPROTO_ICMP)
411 icmp_out_count(net, ((struct icmphdr *)
412 skb_transport_header(skb))->type);
413
414 err = NF_HOOK(NFPROTO_IPV4, NF_INET_LOCAL_OUT,
415 net, sk, skb, NULL, rt->dst.dev,
416 dst_output);
416 dst_output_okfn);
417 if (err > 0)
418 err = net_xmit_errno(err);
419 if (err)
420 goto error;
421out:
422 return 0;
423
424error_free:

--- 677 unchanged lines hidden ---
417 if (err > 0)
418 err = net_xmit_errno(err);
419 if (err)
420 goto error;
421out:
422 return 0;
423
424error_free:

--- 677 unchanged lines hidden ---