if.h (352649) | if.h (366618) |
---|---|
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: stable/11/sys/net/if.h 352649 2019-09-24 06:36:25Z kib $ | 30 * $FreeBSD: stable/11/sys/net/if.h 366618 2020-10-10 18:18:08Z kib $ |
31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#if __BSD_VISIBLE --- 161 unchanged lines hidden (view full) --- 200 * struct ifnet.if_capenable 201 * contains the enabled (either by default or through ifconfig) optional 202 * features & capabilities on this interface. 203 * Capabilities are defined by IFCAP_* below. 204 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above 205 * contains the enabled optional feature & capabilites that can be used 206 * individually per packet and are specified in the mbuf pkthdr.csum_flags 207 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be | 31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#if __BSD_VISIBLE --- 161 unchanged lines hidden (view full) --- 200 * struct ifnet.if_capenable 201 * contains the enabled (either by default or through ifconfig) optional 202 * features & capabilities on this interface. 203 * Capabilities are defined by IFCAP_* below. 204 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above 205 * contains the enabled optional feature & capabilites that can be used 206 * individually per packet and are specified in the mbuf pkthdr.csum_flags 207 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be |
208 * more detailed or differenciated than IFCAP_*. | 208 * more detailed or differentiated than IFCAP_*. |
209 * Hwassist features are defined CSUM_* in sys/mbuf.h 210 * 211 * Capabilities that cannot be arbitrarily changed with ifconfig/ioctl 212 * are listed in IFCAP_CANTCHANGE, similar to IFF_CANTCHANGE. 213 * This is not strictly necessary because the common code never 214 * changes capabilities, and it is left to the individual driver 215 * to do the right thing. However, having the filter here 216 * avoids replication of the same code in all individual drivers. --- 393 unchanged lines hidden --- | 209 * Hwassist features are defined CSUM_* in sys/mbuf.h 210 * 211 * Capabilities that cannot be arbitrarily changed with ifconfig/ioctl 212 * are listed in IFCAP_CANTCHANGE, similar to IFF_CANTCHANGE. 213 * This is not strictly necessary because the common code never 214 * changes capabilities, and it is left to the individual driver 215 * to do the right thing. However, having the filter here 216 * avoids replication of the same code in all individual drivers. --- 393 unchanged lines hidden --- |