Deleted Added
full compact
ip.h (121684) ip.h (125680)
1/*
2 * Copyright (c) 1982, 1986, 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ip.h 8.2 (Berkeley) 6/1/94
1/*
2 * Copyright (c) 1982, 1986, 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ip.h 8.2 (Berkeley) 6/1/94
34 * $FreeBSD: head/sys/netinet/ip.h 121684 2003-10-29 15:07:04Z ume $
34 * $FreeBSD: head/sys/netinet/ip.h 125680 2004-02-11 04:26:04Z bms $
35 */
36
37#ifndef _NETINET_IP_H_
38#define _NETINET_IP_H_
39
40#include <sys/cdefs.h>
41
42/*

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

188 */
189#define MAXTTL 255 /* maximum time to live (seconds) */
190#define IPDEFTTL 64 /* default ttl, from RFC 1340 */
191#define IPFRAGTTL 60 /* time to live for frags, slowhz */
192#define IPTTLDEC 1 /* subtracted when forwarding */
193
194#define IP_MSS 576 /* default maximum segment size */
195
35 */
36
37#ifndef _NETINET_IP_H_
38#define _NETINET_IP_H_
39
40#include <sys/cdefs.h>
41
42/*

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

188 */
189#define MAXTTL 255 /* maximum time to live (seconds) */
190#define IPDEFTTL 64 /* default ttl, from RFC 1340 */
191#define IPFRAGTTL 60 /* time to live for frags, slowhz */
192#define IPTTLDEC 1 /* subtracted when forwarding */
193
194#define IP_MSS 576 /* default maximum segment size */
195
196/*
197 * This is the real IPv4 pseudo header, used for computing the TCP and UDP
198 * checksums. For the Internet checksum, struct ipovly can be used instead.
199 * For stronger checksums, the real thing must be used.
200 */
201struct ippseudo {
202 struct in_addr ippseudo_src; /* source internet address */
203 struct in_addr ippseudo_dst; /* destination internet address */
204 u_int8_t ippseudo_pad; /* pad, must be zero */
205 u_int8_t ippseudo_p; /* protocol */
206 u_int16_t ippseudo_len; /* protocol length */
207} __packed;
196#endif
208#endif