Deleted Added
full compact
if.h (216268) if.h (223078)
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

--- 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 * @(#)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

--- 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 * @(#)if.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if.h 216268 2010-12-07 20:31:04Z weongyo $
30 * $FreeBSD: head/sys/net/if.h 223078 2011-06-14 12:40:55Z luigi $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

194 * features & capabilities on this interface.
195 * Capabilities are defined by IFCAP_* below.
196 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above
197 * contains the enabled optional feature & capabilites that can be used
198 * individually per packet and are specified in the mbuf pkthdr.csum_flags
199 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be
200 * more detailed or differenciated than IFCAP_*.
201 * Hwassist features are defined CSUM_* in sys/mbuf.h
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

194 * features & capabilities on this interface.
195 * Capabilities are defined by IFCAP_* below.
196 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above
197 * contains the enabled optional feature & capabilites that can be used
198 * individually per packet and are specified in the mbuf pkthdr.csum_flags
199 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be
200 * more detailed or differenciated than IFCAP_*.
201 * Hwassist features are defined CSUM_* in sys/mbuf.h
202 *
203 * Capabilities that cannot be arbitrarily changed with ifconfig/ioctl
204 * are listed in IFCAP_CANTCHANGE, similar to IFF_CANTCHANGE.
205 * This is not strictly necessary because the common code never
206 * changes capabilities, and it is left to the individual driver
207 * to do the right thing. However, having the filter here
208 * avoids replication of the same code in all individual drivers.
202 */
203#define IFCAP_RXCSUM 0x00001 /* can offload checksum on RX */
204#define IFCAP_TXCSUM 0x00002 /* can offload checksum on TX */
205#define IFCAP_NETCONS 0x00004 /* can be a network console */
206#define IFCAP_VLAN_MTU 0x00008 /* VLAN-compatible MTU */
207#define IFCAP_VLAN_HWTAGGING 0x00010 /* hardware VLAN tag support */
208#define IFCAP_JUMBO_MTU 0x00020 /* 9000 byte MTU supported */
209#define IFCAP_POLLING 0x00040 /* driver supports polling */

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

215#define IFCAP_WOL_MCAST 0x01000 /* wake on any multicast frame */
216#define IFCAP_WOL_MAGIC 0x02000 /* wake on any Magic Packet */
217#define IFCAP_TOE4 0x04000 /* interface can offload TCP */
218#define IFCAP_TOE6 0x08000 /* interface can offload TCP6 */
219#define IFCAP_VLAN_HWFILTER 0x10000 /* interface hw can filter vlan tag */
220#define IFCAP_POLLING_NOCOUNT 0x20000 /* polling ticks cannot be fragmented */
221#define IFCAP_VLAN_HWTSO 0x40000 /* can do IFCAP_TSO on VLANs */
222#define IFCAP_LINKSTATE 0x80000 /* the runtime link state is dynamic */
209 */
210#define IFCAP_RXCSUM 0x00001 /* can offload checksum on RX */
211#define IFCAP_TXCSUM 0x00002 /* can offload checksum on TX */
212#define IFCAP_NETCONS 0x00004 /* can be a network console */
213#define IFCAP_VLAN_MTU 0x00008 /* VLAN-compatible MTU */
214#define IFCAP_VLAN_HWTAGGING 0x00010 /* hardware VLAN tag support */
215#define IFCAP_JUMBO_MTU 0x00020 /* 9000 byte MTU supported */
216#define IFCAP_POLLING 0x00040 /* driver supports polling */

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

222#define IFCAP_WOL_MCAST 0x01000 /* wake on any multicast frame */
223#define IFCAP_WOL_MAGIC 0x02000 /* wake on any Magic Packet */
224#define IFCAP_TOE4 0x04000 /* interface can offload TCP */
225#define IFCAP_TOE6 0x08000 /* interface can offload TCP6 */
226#define IFCAP_VLAN_HWFILTER 0x10000 /* interface hw can filter vlan tag */
227#define IFCAP_POLLING_NOCOUNT 0x20000 /* polling ticks cannot be fragmented */
228#define IFCAP_VLAN_HWTSO 0x40000 /* can do IFCAP_TSO on VLANs */
229#define IFCAP_LINKSTATE 0x80000 /* the runtime link state is dynamic */
230#define IFCAP_NETMAP 0x100000 /* netmap mode supported/enabled */
223
224#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
225#define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6)
226#define IFCAP_WOL (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)
227#define IFCAP_TOE (IFCAP_TOE4 | IFCAP_TOE6)
228
231
232#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
233#define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6)
234#define IFCAP_WOL (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)
235#define IFCAP_TOE (IFCAP_TOE4 | IFCAP_TOE6)
236
237#define IFCAP_CANTCHANGE (IFCAP_NETMAP)
238
229#define IFQ_MAXLEN 50
230#define IFNET_SLOWHZ 1 /* granularity is 1 second */
231
232/*
233 * Message format for use in obtaining information about interfaces
234 * from getkerninfo and the routing socket
235 */
236struct if_msghdr {

--- 229 unchanged lines hidden ---
239#define IFQ_MAXLEN 50
240#define IFNET_SLOWHZ 1 /* granularity is 1 second */
241
242/*
243 * Message format for use in obtaining information about interfaces
244 * from getkerninfo and the routing socket
245 */
246struct if_msghdr {

--- 229 unchanged lines hidden ---