if.h (193096) | if.h (194251) |
---|---|
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 193096 2009-05-30 15:14:44Z attilio $ | 30 * $FreeBSD: head/sys/net/if.h 194251 2009-06-15 18:59:29Z jamie $ |
31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#ifdef _KERNEL --- 252 unchanged lines hidden (view full) --- 291struct ifreq { 292 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 293 union { 294 struct sockaddr ifru_addr; 295 struct sockaddr ifru_dstaddr; 296 struct sockaddr ifru_broadaddr; 297 short ifru_flags[2]; 298 short ifru_index; | 31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#ifdef _KERNEL --- 252 unchanged lines hidden (view full) --- 291struct ifreq { 292 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 293 union { 294 struct sockaddr ifru_addr; 295 struct sockaddr ifru_dstaddr; 296 struct sockaddr ifru_broadaddr; 297 short ifru_flags[2]; 298 short ifru_index; |
299 int ifru_jid; |
|
299 int ifru_metric; 300 int ifru_mtu; 301 int ifru_phys; 302 int ifru_media; 303 caddr_t ifru_data; 304 int ifru_cap[2]; 305 } ifr_ifru; 306#define ifr_addr ifr_ifru.ifru_addr /* address */ 307#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ 308#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ 309#define ifr_flags ifr_ifru.ifru_flags[0] /* flags (low 16 bits) */ 310#define ifr_flagshigh ifr_ifru.ifru_flags[1] /* flags (high 16 bits) */ | 300 int ifru_metric; 301 int ifru_mtu; 302 int ifru_phys; 303 int ifru_media; 304 caddr_t ifru_data; 305 int ifru_cap[2]; 306 } ifr_ifru; 307#define ifr_addr ifr_ifru.ifru_addr /* address */ 308#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ 309#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ 310#define ifr_flags ifr_ifru.ifru_flags[0] /* flags (low 16 bits) */ 311#define ifr_flagshigh ifr_ifru.ifru_flags[1] /* flags (high 16 bits) */ |
312#define ifr_jid ifr_ifru.ifru_jid /* jail/vnet */ |
|
311#define ifr_metric ifr_ifru.ifru_metric /* metric */ 312#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ 313#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ 314#define ifr_media ifr_ifru.ifru_media /* physical media */ 315#define ifr_data ifr_ifru.ifru_data /* for use by interface */ 316#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */ 317#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */ 318#define ifr_index ifr_ifru.ifru_index /* interface index */ --- 142 unchanged lines hidden --- | 313#define ifr_metric ifr_ifru.ifru_metric /* metric */ 314#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ 315#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ 316#define ifr_media ifr_ifru.ifru_media /* physical media */ 317#define ifr_data ifr_ifru.ifru_data /* for use by interface */ 318#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */ 319#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */ 320#define ifr_index ifr_ifru.ifru_index /* interface index */ --- 142 unchanged lines hidden --- |