if.h (30354) | if.h (32491) |
---|---|
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 * $Id: if.h,v 1.46 1997/05/03 21:07:12 peter Exp $ | 34 * $Id: if.h,v 1.47 1997/10/12 20:25:11 phk Exp $ |
35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structure describing information about an interface 42 * which may be of interest to management entities. --- 119 unchanged lines hidden (view full) --- 162#define ifr_flags ifr_ifru.ifru_flags /* flags */ 163#define ifr_metric ifr_ifru.ifru_metric /* metric */ 164#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ 165#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ 166#define ifr_media ifr_ifru.ifru_media /* physical media */ 167#define ifr_data ifr_ifru.ifru_data /* for use by interface */ 168}; 169 | 35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structure describing information about an interface 42 * which may be of interest to management entities. --- 119 unchanged lines hidden (view full) --- 162#define ifr_flags ifr_ifru.ifru_flags /* flags */ 163#define ifr_metric ifr_ifru.ifru_metric /* metric */ 164#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ 165#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ 166#define ifr_media ifr_ifru.ifru_media /* physical media */ 167#define ifr_data ifr_ifru.ifru_data /* for use by interface */ 168}; 169 |
170#define _SIZEOF_ADDR_IFREQ(ifr) \ 171 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ 172 (sizeof(struct ifreq) - sizeof(struct sockaddr) + \ 173 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq)) 174 |
|
170struct ifaliasreq { 171 char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 172 struct sockaddr ifra_addr; 173 struct sockaddr ifra_broadaddr; 174 struct sockaddr ifra_mask; 175}; 176 177struct ifmediareq { --- 37 unchanged lines hidden --- | 175struct ifaliasreq { 176 char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 177 struct sockaddr ifra_addr; 178 struct sockaddr ifra_broadaddr; 179 struct sockaddr ifra_mask; 180}; 181 182struct ifmediareq { --- 37 unchanged lines hidden --- |