Deleted Added
full compact
if.h (55205) if.h (58698)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if.h 8.1 (Berkeley) 6/10/93
34 * $FreeBSD: head/sys/net/if.h 55205 1999-12-29 04:46:21Z peter $
34 * $FreeBSD: head/sys/net/if.h 58698 2000-03-27 19:14:27Z jlemon $
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40/*
41 * <net/if.h> does not depend on <sys/time.h> on most other systems. This
42 * helps userland compatability. (struct timeval ifi_lastchange)

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

67 u_long ifi_oerrors; /* output errors on interface */
68 u_long ifi_collisions; /* collisions on csma interfaces */
69 u_long ifi_ibytes; /* total number of octets received */
70 u_long ifi_obytes; /* total number of octets sent */
71 u_long ifi_imcasts; /* packets received via multicast */
72 u_long ifi_omcasts; /* packets sent via multicast */
73 u_long ifi_iqdrops; /* dropped on input, this interface */
74 u_long ifi_noproto; /* destined for unsupported protocol */
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40/*
41 * <net/if.h> does not depend on <sys/time.h> on most other systems. This
42 * helps userland compatability. (struct timeval ifi_lastchange)

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

67 u_long ifi_oerrors; /* output errors on interface */
68 u_long ifi_collisions; /* collisions on csma interfaces */
69 u_long ifi_ibytes; /* total number of octets received */
70 u_long ifi_obytes; /* total number of octets sent */
71 u_long ifi_imcasts; /* packets received via multicast */
72 u_long ifi_omcasts; /* packets sent via multicast */
73 u_long ifi_iqdrops; /* dropped on input, this interface */
74 u_long ifi_noproto; /* destined for unsupported protocol */
75 u_long ifi_recvtiming; /* usec spent receiving when timing */
76 u_long ifi_xmittiming; /* usec spent xmitting when timing */
75 u_long ifi_hwassist; /* HW offload capabilities */
76 u_long ifi_unused; /* XXX was ifi_xmittiming */
77 struct timeval ifi_lastchange; /* time of last administrative change */
78};
79
80#define IFF_UP 0x1 /* interface is up */
81#define IFF_BROADCAST 0x2 /* broadcast address valid */
82#define IFF_DEBUG 0x4 /* turn on debugging */
83#define IFF_LOOPBACK 0x8 /* is a loopback net */
84#define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */

--- 190 unchanged lines hidden ---
77 struct timeval ifi_lastchange; /* time of last administrative change */
78};
79
80#define IFF_UP 0x1 /* interface is up */
81#define IFF_BROADCAST 0x2 /* broadcast address valid */
82#define IFF_DEBUG 0x4 /* turn on debugging */
83#define IFF_LOOPBACK 0x8 /* is a loopback net */
84#define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */

--- 190 unchanged lines hidden ---