Deleted Added
full compact
if_var.h (195699) if_var.h (195727)
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 * From: @(#)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 * From: @(#)if.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if_var.h 195699 2009-07-14 22:48:30Z rwatson $
30 * $FreeBSD: head/sys/net/if_var.h 195727 2009-07-16 21:13:04Z rwatson $
31 */
32
33#ifndef _NET_IF_VAR_H_
34#define _NET_IF_VAR_H_
35
36/*
37 * Structures defining a network interface, providing a packet
38 * transport mechanism (ala level 0 of the PUP protocols).

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

780 */
781struct ifaddr *ifaddr_byindex(u_short idx);
782
783VNET_DECLARE(struct ifnethead, ifnet);
784VNET_DECLARE(struct ifgrouphead, ifg_head);
785VNET_DECLARE(int, if_index);
786VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
787
31 */
32
33#ifndef _NET_IF_VAR_H_
34#define _NET_IF_VAR_H_
35
36/*
37 * Structures defining a network interface, providing a packet
38 * transport mechanism (ala level 0 of the PUP protocols).

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

780 */
781struct ifaddr *ifaddr_byindex(u_short idx);
782
783VNET_DECLARE(struct ifnethead, ifnet);
784VNET_DECLARE(struct ifgrouphead, ifg_head);
785VNET_DECLARE(int, if_index);
786VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
787
788#define V_ifnet VNET_GET(ifnet)
789#define V_ifg_head VNET_GET(ifg_head)
790#define V_if_index VNET_GET(if_index)
791#define V_loif VNET_GET(loif)
788#define V_ifnet VNET(ifnet)
789#define V_ifg_head VNET(ifg_head)
790#define V_if_index VNET(if_index)
791#define V_loif VNET(loif)
792
793extern int ifqmaxlen;
794
795int if_addgroup(struct ifnet *, const char *);
796int if_delgroup(struct ifnet *, const char *);
797int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
798int if_allmulti(struct ifnet *, int);
799struct ifnet* if_alloc(u_char);

--- 62 unchanged lines hidden ---
792
793extern int ifqmaxlen;
794
795int if_addgroup(struct ifnet *, const char *);
796int if_delgroup(struct ifnet *, const char *);
797int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
798int if_allmulti(struct ifnet *, int);
799struct ifnet* if_alloc(u_char);

--- 62 unchanged lines hidden ---