Deleted Added
full compact
if_var.h (191688) if_var.h (191816)
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 191688 2009-04-30 13:36:26Z zec $
30 * $FreeBSD: head/sys/net/if_var.h 191816 2009-05-05 10:56:12Z zec $
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).

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

726};
727
728/*
729 * Look up an ifnet given its index; the _ref variant also acquires a
730 * reference that must be freed using if_rele(). It is almost always a bug
731 * to call ifnet_byindex() instead if ifnet_byindex_ref().
732 */
733struct ifnet *ifnet_byindex(u_short idx);
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).

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

726};
727
728/*
729 * Look up an ifnet given its index; the _ref variant also acquires a
730 * reference that must be freed using if_rele(). It is almost always a bug
731 * to call ifnet_byindex() instead if ifnet_byindex_ref().
732 */
733struct ifnet *ifnet_byindex(u_short idx);
734struct ifnet *ifnet_byindex_locked(u_short idx);
734struct ifnet *ifnet_byindex_ref(u_short idx);
735struct ifnet *ifnet_byindex_ref(u_short idx);
736void ifnet_setbyindex(u_short idx, struct ifnet *ifp);
735
736/*
737 * Given the index, ifaddr_byindex() returns the one and only
738 * link-level ifaddr for the interface. You are not supposed to use
739 * it to traverse the list of addresses associated to the interface.
740 */
741struct ifaddr *ifaddr_byindex(u_short idx);
742struct cdev *ifdev_byindex(u_short idx);

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

750
751int if_addgroup(struct ifnet *, const char *);
752int if_delgroup(struct ifnet *, const char *);
753int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
754int if_allmulti(struct ifnet *, int);
755struct ifnet* if_alloc(u_char);
756void if_attach(struct ifnet *);
757void if_dead(struct ifnet *);
737
738/*
739 * Given the index, ifaddr_byindex() returns the one and only
740 * link-level ifaddr for the interface. You are not supposed to use
741 * it to traverse the list of addresses associated to the interface.
742 */
743struct ifaddr *ifaddr_byindex(u_short idx);
744struct cdev *ifdev_byindex(u_short idx);

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

752
753int if_addgroup(struct ifnet *, const char *);
754int if_delgroup(struct ifnet *, const char *);
755int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
756int if_allmulti(struct ifnet *, int);
757struct ifnet* if_alloc(u_char);
758void if_attach(struct ifnet *);
759void if_dead(struct ifnet *);
760void if_grow(void);
758int if_delmulti(struct ifnet *, struct sockaddr *);
759void if_delmulti_ifma(struct ifmultiaddr *);
760void if_detach(struct ifnet *);
761void if_purgeaddrs(struct ifnet *);
762void if_purgemaddrs(struct ifnet *);
763void if_down(struct ifnet *);
764struct ifmultiaddr *
765 if_findmulti(struct ifnet *, struct sockaddr *);

--- 49 unchanged lines hidden ---
761int if_delmulti(struct ifnet *, struct sockaddr *);
762void if_delmulti_ifma(struct ifmultiaddr *);
763void if_detach(struct ifnet *);
764void if_purgeaddrs(struct ifnet *);
765void if_purgemaddrs(struct ifnet *);
766void if_down(struct ifnet *);
767struct ifmultiaddr *
768 if_findmulti(struct ifnet *, struct sockaddr *);

--- 49 unchanged lines hidden ---