Deleted Added
full compact
if.h (158471) if.h (159781)
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 158471 2006-05-12 05:04:46Z jhb $
30 * $FreeBSD: head/sys/net/if.h 159781 2006-06-19 22:20:45Z mlaier $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

351 union {
352 u_int ifcu_buf;
353 u_int ifcu_req;
354 } ifc_ifcu;
355};
356#endif
357
358/*
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

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

351 union {
352 u_int ifcu_buf;
353 u_int ifcu_req;
354 } ifc_ifcu;
355};
356#endif
357
358/*
359 * interface groups
360 */
361
362#define IFG_ALL "all" /* group contains all interfaces */
363/* XXX: will we implement this? */
364#define IFG_EGRESS "egress" /* if(s) default route(s) point to */
365
366struct ifg_req {
367 union {
368 char ifgrqu_group[IFNAMSIZ];
369 char ifgrqu_member[IFNAMSIZ];
370 } ifgrq_ifgrqu;
371#define ifgrq_group ifgrq_ifgrqu.ifgrqu_group
372#define ifgrq_member ifgrq_ifgrqu.ifgrqu_member
373};
374
375/*
376 * Used to lookup groups for an interface
377 */
378struct ifgroupreq {
379 char ifgr_name[IFNAMSIZ];
380 u_int ifgr_len;
381 union {
382 char ifgru_group[IFNAMSIZ];
383 struct ifg_req *ifgru_groups;
384 } ifgr_ifgru;
385#define ifgr_group ifgr_ifgru.ifgru_group
386#define ifgr_groups ifgr_ifgru.ifgru_groups
387};
388
389/*
359 * Structure for SIOC[AGD]LIFADDR
360 */
361struct if_laddrreq {
362 char iflr_name[IFNAMSIZ];
363 u_int flags;
364#define IFLR_PREFIX 0x8000 /* in: prefix given out: kernel fills id */
365 u_int prefixlen; /* in/out */
366 struct sockaddr_storage addr; /* in/out */

--- 34 unchanged lines hidden ---
390 * Structure for SIOC[AGD]LIFADDR
391 */
392struct if_laddrreq {
393 char iflr_name[IFNAMSIZ];
394 u_int flags;
395#define IFLR_PREFIX 0x8000 /* in: prefix given out: kernel fills id */
396 u_int prefixlen; /* in/out */
397 struct sockaddr_storage addr; /* in/out */

--- 34 unchanged lines hidden ---