ip_output.c (185571) | ip_output.c (185895) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 30 */ 31 32#include <sys/cdefs.h> | 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/ip_output.c 185571 2008-12-02 21:37:28Z bz $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/ip_output.c 185895 2008-12-10 23:12:39Z zec $"); |
34 35#include "opt_ipfw.h" 36#include "opt_ipsec.h" 37#include "opt_mac.h" 38#include "opt_mbuf_stress_test.h" 39#include "opt_mpath.h" 40 41#include <sys/param.h> --- 746 unchanged lines hidden (view full) --- 788done: 789 *m_frag = m0; 790 return error; 791} 792 793void 794in_delayed_cksum(struct mbuf *m) 795{ | 34 35#include "opt_ipfw.h" 36#include "opt_ipsec.h" 37#include "opt_mac.h" 38#include "opt_mbuf_stress_test.h" 39#include "opt_mpath.h" 40 41#include <sys/param.h> --- 746 unchanged lines hidden (view full) --- 788done: 789 *m_frag = m0; 790 return error; 791} 792 793void 794in_delayed_cksum(struct mbuf *m) 795{ |
796 INIT_VNET_INET(curvnet); | |
797 struct ip *ip; 798 u_short csum, offset; 799 800 ip = mtod(m, struct ip *); 801 offset = ip->ip_hl << 2 ; 802 csum = in_cksum_skip(m, ip->ip_len, offset); 803 if (m->m_pkthdr.csum_flags & CSUM_UDP && csum == 0) 804 csum = 0xffff; --- 394 unchanged lines hidden --- | 796 struct ip *ip; 797 u_short csum, offset; 798 799 ip = mtod(m, struct ip *); 800 offset = ip->ip_hl << 2 ; 801 csum = in_cksum_skip(m, ip->ip_len, offset); 802 if (m->m_pkthdr.csum_flags & CSUM_UDP && csum == 0) 803 csum = 0xffff; --- 394 unchanged lines hidden --- |