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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)in.h 8.3 (Berkeley) 1/3/94
1/*-
2 * Copyright (c) 1982, 1986, 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * @(#)in.h 8.3 (Berkeley) 1/3/94
30 * $FreeBSD: head/sys/netinet/in.h 153553 2005-12-20 09:38:03Z delphij $
30 * $FreeBSD: head/sys/netinet/in.h 158563 2006-05-14 14:22:49Z bms $
31 */
32
33#ifndef _NETINET_IN_H_
34#define _NETINET_IN_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <machine/endian.h>

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

419#define IP_MINTTL 66 /* minimum TTL for packet or drop */
420#define IP_DONTFRAG 67 /* don't fragment packet */
421
422/*
423 * Defaults and limits for options
424 */
425#define IP_DEFAULT_MULTICAST_TTL 1 /* normally limit m'casts to 1 hop */
426#define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */
31 */
32
33#ifndef _NETINET_IN_H_
34#define _NETINET_IN_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <machine/endian.h>

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

419#define IP_MINTTL 66 /* minimum TTL for packet or drop */
420#define IP_DONTFRAG 67 /* don't fragment packet */
421
422/*
423 * Defaults and limits for options
424 */
425#define IP_DEFAULT_MULTICAST_TTL 1 /* normally limit m'casts to 1 hop */
426#define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */
427#define IP_MAX_MEMBERSHIPS 20 /* per socket */
428
429/*
427
428/*
429 * The imo_membership vector for each socket is now dynamically allocated at
430 * run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
431 * according to a power-of-two increment.
432 */
433#define IP_MIN_MEMBERSHIPS 31
434#define IP_MAX_MEMBERSHIPS 4095
435
436/*
430 * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
431 */
432struct ip_mreq {
433 struct in_addr imr_multiaddr; /* IP multicast address of group */
434 struct in_addr imr_interface; /* local IP address of interface */
435};
436
437/*

--- 158 unchanged lines hidden ---
437 * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
438 */
439struct ip_mreq {
440 struct in_addr imr_multiaddr; /* IP multicast address of group */
441 struct in_addr imr_interface; /* local IP address of interface */
442};
443
444/*

--- 158 unchanged lines hidden ---