Deleted Added
full compact
if_var.h (192605) if_var.h (193096)
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 192605 2009-05-22 22:09:00Z zec $
30 * $FreeBSD: head/sys/net/if_var.h 193096 2009-05-30 15:14:44Z attilio $
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).

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

802void if_deregister_com_alloc(u_char type);
803
804#define IF_LLADDR(ifp) \
805 LLADDR((struct sockaddr_dl *)((ifp)->if_addr->ifa_addr))
806
807#ifdef DEVICE_POLLING
808enum poll_cmd { POLL_ONLY, POLL_AND_CHECK_STATUS };
809
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).

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

802void if_deregister_com_alloc(u_char type);
803
804#define IF_LLADDR(ifp) \
805 LLADDR((struct sockaddr_dl *)((ifp)->if_addr->ifa_addr))
806
807#ifdef DEVICE_POLLING
808enum poll_cmd { POLL_ONLY, POLL_AND_CHECK_STATUS };
809
810typedef void poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
810typedef int poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
811int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
812int ether_poll_deregister(struct ifnet *ifp);
813#endif /* DEVICE_POLLING */
814
815#endif /* _KERNEL */
816
817#endif /* !_NET_IF_VAR_H_ */
811int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
812int ether_poll_deregister(struct ifnet *ifp);
813#endif /* DEVICE_POLLING */
814
815#endif /* _KERNEL */
816
817#endif /* !_NET_IF_VAR_H_ */