if.h (21259) | if.h (21666) |
---|---|
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.41 1996/12/13 21:28:37 wollman Exp $ | 34 * $Id: if.h,v 1.42 1997/01/03 19:50:25 wollman 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. --- 76 unchanged lines hidden (view full) --- 119 u_char ifam_type; /* message type */ 120 int ifam_addrs; /* like rtm_addrs */ 121 int ifam_flags; /* value of ifa_flags */ 122 u_short ifam_index; /* index for associated ifp */ 123 int ifam_metric; /* value of ifa_metric */ 124}; 125 126/* | 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. --- 76 unchanged lines hidden (view full) --- 119 u_char ifam_type; /* message type */ 120 int ifam_addrs; /* like rtm_addrs */ 121 int ifam_flags; /* value of ifa_flags */ 122 u_short ifam_index; /* index for associated ifp */ 123 int ifam_metric; /* value of ifa_metric */ 124}; 125 126/* |
127 * Message format for use in obtaining information about multicast addresses 128 * from the routing socket 129 */ 130struct ifma_msghdr { 131 u_short ifmam_msglen; /* to skip over non-understood messages */ 132 u_char ifmam_version; /* future binary compatability */ 133 u_char ifmam_type; /* message type */ 134 int ifmam_addrs; /* like rtm_addrs */ 135 int ifmam_flags; /* value of ifa_flags */ 136 u_short ifmam_index; /* index for associated ifp */ 137}; 138 139/* |
|
127 * Interface request structure used for socket 128 * ioctl's. All interface ioctl's must have parameter 129 * definitions which begin with ifr_name. The 130 * remainder may be interface specific. 131 */ 132struct ifreq { 133#define IFNAMSIZ 16 134 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ --- 49 unchanged lines hidden --- | 140 * Interface request structure used for socket 141 * ioctl's. All interface ioctl's must have parameter 142 * definitions which begin with ifr_name. The 143 * remainder may be interface specific. 144 */ 145struct ifreq { 146#define IFNAMSIZ 16 147 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ --- 49 unchanged lines hidden --- |