Deleted Added
full compact
if.h (85079) if.h (87902)
1/*
2 * Copyright (c) 1982, 1986, 1989, 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 * @(#)if.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1982, 1986, 1989, 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 * @(#)if.h 8.1 (Berkeley) 6/10/93
34 * $FreeBSD: head/sys/net/if.h 85079 2001-10-17 19:40:44Z jlemon $
34 * $FreeBSD: head/sys/net/if.h 87902 2001-12-14 17:56:12Z luigi $
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

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

126#define IFF_OACTIVE 0x400 /* transmission in progress */
127#define IFF_SIMPLEX 0x800 /* can't hear own transmissions */
128#define IFF_LINK0 0x1000 /* per link layer defined bit */
129#define IFF_LINK1 0x2000 /* per link layer defined bit */
130#define IFF_LINK2 0x4000 /* per link layer defined bit */
131#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */
132#define IFF_MULTICAST 0x8000 /* supports multicast */
133
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

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

126#define IFF_OACTIVE 0x400 /* transmission in progress */
127#define IFF_SIMPLEX 0x800 /* can't hear own transmissions */
128#define IFF_LINK0 0x1000 /* per link layer defined bit */
129#define IFF_LINK1 0x2000 /* per link layer defined bit */
130#define IFF_LINK2 0x4000 /* per link layer defined bit */
131#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */
132#define IFF_MULTICAST 0x8000 /* supports multicast */
133
134/*
135 * The following flag(s) ought to go in if_flags, but we cannot change
136 * struct ifnet because of binary compatibility, so we store them in
137 * if_ipending, which is not used so far.
138 * If possible, make sure the value is not conflicting with other
139 * IFF flags, so we have an easier time when we want to merge them.
140 */
141#define IFF_POLLING 0x10000 /* Interface is in polling mode. */
142
134/* flags set internally only: */
135#define IFF_CANTCHANGE \
136 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\
137 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART)
138
139/* Capabilities that interfaces can advertise. */
140#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */
141#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */

--- 177 unchanged lines hidden ---
143/* flags set internally only: */
144#define IFF_CANTCHANGE \
145 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\
146 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART)
147
148/* Capabilities that interfaces can advertise. */
149#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */
150#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */

--- 177 unchanged lines hidden ---