ip_output.c (bc97ba51001ddef32d8ac1e4d286f50c362956cb) ip_output.c (97021c246444967a8f441a90076fb4f7ef22fb3a)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

786done:
787 *m_frag = m0;
788 return error;
789}
790
791void
792in_delayed_cksum(struct mbuf *m)
793{
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

786done:
787 *m_frag = m0;
788 return error;
789}
790
791void
792in_delayed_cksum(struct mbuf *m)
793{
794 INIT_VNET_INET(curvnet);
794 struct ip *ip;
795 u_short csum, offset;
796
797 ip = mtod(m, struct ip *);
798 offset = ip->ip_hl << 2 ;
799 csum = in_cksum_skip(m, ip->ip_len, offset);
800 if (m->m_pkthdr.csum_flags & CSUM_UDP && csum == 0)
801 csum = 0xffff;

--- 394 unchanged lines hidden ---
795 struct ip *ip;
796 u_short csum, offset;
797
798 ip = mtod(m, struct ip *);
799 offset = ip->ip_hl << 2 ;
800 csum = in_cksum_skip(m, ip->ip_len, offset);
801 if (m->m_pkthdr.csum_flags & CSUM_UDP && csum == 0)
802 csum = 0xffff;

--- 394 unchanged lines hidden ---