Deleted Added
full compact
if.h (223078) if.h (223735)
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 223078 2011-06-14 12:40:55Z luigi $
30 * $FreeBSD: head/sys/net/if.h 223735 2011-07-03 12:22:02Z bz $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

320 short ifru_index;
321 int ifru_jid;
322 int ifru_metric;
323 int ifru_mtu;
324 int ifru_phys;
325 int ifru_media;
326 caddr_t ifru_data;
327 int ifru_cap[2];
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

320 short ifru_index;
321 int ifru_jid;
322 int ifru_metric;
323 int ifru_mtu;
324 int ifru_phys;
325 int ifru_media;
326 caddr_t ifru_data;
327 int ifru_cap[2];
328 u_int ifru_fib;
328 } ifr_ifru;
329#define ifr_addr ifr_ifru.ifru_addr /* address */
330#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */
331#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */
332#define ifr_buffer ifr_ifru.ifru_buffer /* user supplied buffer with its length */
333#define ifr_flags ifr_ifru.ifru_flags[0] /* flags (low 16 bits) */
334#define ifr_flagshigh ifr_ifru.ifru_flags[1] /* flags (high 16 bits) */
335#define ifr_jid ifr_ifru.ifru_jid /* jail/vnet */
336#define ifr_metric ifr_ifru.ifru_metric /* metric */
337#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */
338#define ifr_phys ifr_ifru.ifru_phys /* physical wire */
339#define ifr_media ifr_ifru.ifru_media /* physical media */
340#define ifr_data ifr_ifru.ifru_data /* for use by interface */
341#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */
342#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */
343#define ifr_index ifr_ifru.ifru_index /* interface index */
329 } ifr_ifru;
330#define ifr_addr ifr_ifru.ifru_addr /* address */
331#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */
332#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */
333#define ifr_buffer ifr_ifru.ifru_buffer /* user supplied buffer with its length */
334#define ifr_flags ifr_ifru.ifru_flags[0] /* flags (low 16 bits) */
335#define ifr_flagshigh ifr_ifru.ifru_flags[1] /* flags (high 16 bits) */
336#define ifr_jid ifr_ifru.ifru_jid /* jail/vnet */
337#define ifr_metric ifr_ifru.ifru_metric /* metric */
338#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */
339#define ifr_phys ifr_ifru.ifru_phys /* physical wire */
340#define ifr_media ifr_ifru.ifru_media /* physical media */
341#define ifr_data ifr_ifru.ifru_data /* for use by interface */
342#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */
343#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */
344#define ifr_index ifr_ifru.ifru_index /* interface index */
345#define ifr_fib ifr_ifru.ifru_fib /* interface fib */
344};
345
346#define _SIZEOF_ADDR_IFREQ(ifr) \
347 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \
348 (sizeof(struct ifreq) - sizeof(struct sockaddr) + \
349 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
350
351struct ifaliasreq {

--- 124 unchanged lines hidden ---
346};
347
348#define _SIZEOF_ADDR_IFREQ(ifr) \
349 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \
350 (sizeof(struct ifreq) - sizeof(struct sockaddr) + \
351 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
352
353struct ifaliasreq {

--- 124 unchanged lines hidden ---