Deleted Added
full compact
if.h (87902) if.h (89498)
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 87902 2001-12-14 17:56:12Z luigi $
34 * $FreeBSD: head/sys/net/if.h 89498 2002-01-18 14:33:04Z ru $
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

--- 149 unchanged lines hidden (view full) ---

192 u_char ifmam_version; /* future binary compatibility */
193 u_char ifmam_type; /* message type */
194 int ifmam_addrs; /* like rtm_addrs */
195 int ifmam_flags; /* value of ifa_flags */
196 u_short ifmam_index; /* index for associated ifp */
197};
198
199/*
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

--- 149 unchanged lines hidden (view full) ---

192 u_char ifmam_version; /* future binary compatibility */
193 u_char ifmam_type; /* message type */
194 int ifmam_addrs; /* like rtm_addrs */
195 int ifmam_flags; /* value of ifa_flags */
196 u_short ifmam_index; /* index for associated ifp */
197};
198
199/*
200 * Message format announcing the arrival or departure of a network interface.
201 */
202struct if_announcemsghdr {
203 u_short ifan_msglen; /* to skip over non-understood messages */
204 u_char ifan_version; /* future binary compatibility */
205 u_char ifan_type; /* message type */
206 u_short ifan_index; /* index for associated ifp */
207 char ifan_name[IFNAMSIZ]; /* if name, e.g. "en0" */
208 u_short ifan_what; /* what type of announcement */
209};
210
211#define IFAN_ARRIVAL 0 /* interface arrival */
212#define IFAN_DEPARTURE 1 /* interface departure */
213
214/*
200 * Interface request structure used for socket
201 * ioctl's. All interface ioctl's must have parameter
202 * definitions which begin with ifr_name. The
203 * remainder may be interface specific.
204 */
205struct ifreq {
206 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */
207 union {

--- 120 unchanged lines hidden ---
215 * Interface request structure used for socket
216 * ioctl's. All interface ioctl's must have parameter
217 * definitions which begin with ifr_name. The
218 * remainder may be interface specific.
219 */
220struct ifreq {
221 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */
222 union {

--- 120 unchanged lines hidden ---