if.h (104360) | if.h (106925) |
---|---|
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 104360 2002-10-02 07:55:33Z mike $ | 34 * $FreeBSD: head/sys/net/if.h 106925 2002-11-14 23:16:18Z sam $ |
35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40#include <sys/cdefs.h> 41 42#ifdef _KERNEL --- 109 unchanged lines hidden (view full) --- 152#define IFF_MONITOR 0x40000 /* user-requested monitor mode */ 153 154/* flags set internally only: */ 155#define IFF_CANTCHANGE \ 156 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\ 157 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\ 158 IFF_POLLING) 159 | 35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40#include <sys/cdefs.h> 41 42#ifdef _KERNEL --- 109 unchanged lines hidden (view full) --- 152#define IFF_MONITOR 0x40000 /* user-requested monitor mode */ 153 154/* flags set internally only: */ 155#define IFF_CANTCHANGE \ 156 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\ 157 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\ 158 IFF_POLLING) 159 |
160/* 161 * Some convenience macros used for setting ifi_baudrate. 162 * XXX 1000 vs. 1024? --thorpej@netbsd.org 163 */ 164#define IF_Kbps(x) ((x) * 1000) /* kilobits/sec. */ 165#define IF_Mbps(x) (IF_Kbps((x) * 1000)) /* megabits/sec. */ 166#define IF_Gbps(x) (IF_Mbps((x) * 1000)) /* gigabits/sec. */ 167 |
|
160/* Capabilities that interfaces can advertise. */ 161#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */ 162#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */ 163#define IFCAP_NETCONS 0x0004 /* can be a network console */ | 168/* Capabilities that interfaces can advertise. */ 169#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */ 170#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */ 171#define IFCAP_NETCONS 0x0004 /* can be a network console */ |
172#define IFCAP_VLAN_MTU 0x0008 /* VLAN-compatible MTU */ 173#define IFCAP_VLAN_HWTAGGING 0x0010 /* hardware VLAN tag support */ 174#define IFCAP_JUMBO_MTU 0x0020 /* 9000 byte MTU supported */ |
|
164 165#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM) 166 167#define IFQ_MAXLEN 50 168#define IFNET_SLOWHZ 1 /* granularity is 1 second */ 169 170/* 171 * Message format for use in obtaining information about interfaces --- 185 unchanged lines hidden --- | 175 176#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM) 177 178#define IFQ_MAXLEN 50 179#define IFNET_SLOWHZ 1 /* granularity is 1 second */ 180 181/* 182 * Message format for use in obtaining information about interfaces --- 185 unchanged lines hidden --- |