Deleted Added
full compact
iface.h (81634) iface.h (134789)
1/*-
2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org>
3 * 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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org>
3 * 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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.sbin/ppp/iface.h 81634 2001-08-14 16:05:52Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/iface.h 134789 2004-09-05 01:46:52Z brian $
27 */
28
29struct ifa_msghdr;
30
31struct iface_addr {
32 unsigned system : 1; /* System alias ? */
33 struct ncprange ifa; /* local address/mask */
34 struct ncpaddr peer; /* peer address */
35};
36
37struct iface {
38 char *name; /* Interface name (malloc'd) */
39 int index; /* Interface index */
40 int flags; /* Interface flags (IFF_*) */
27 */
28
29struct ifa_msghdr;
30
31struct iface_addr {
32 unsigned system : 1; /* System alias ? */
33 struct ncprange ifa; /* local address/mask */
34 struct ncpaddr peer; /* peer address */
35};
36
37struct iface {
38 char *name; /* Interface name (malloc'd) */
39 int index; /* Interface index */
40 int flags; /* Interface flags (IFF_*) */
41 int mtu; /* struct tuninfo MTU */
41 unsigned long mtu; /* struct tuninfo MTU */
42
42
43 int addrs; /* How many in_addr's */
43 unsigned addrs; /* How many in_addr's */
44 struct iface_addr *addr; /* Array of addresses (malloc'd) */
45};
46
47#define IFACE_CLEAR_ALL 0 /* Nuke 'em all */
48#define IFACE_CLEAR_ALIASES 1 /* Leave the NCP address */
49
50#define IFACE_ADD_LAST 0 /* Just another alias */
51#define IFACE_ADD_FIRST 1 /* The IPCP address */

--- 14 unchanged lines hidden ---
44 struct iface_addr *addr; /* Array of addresses (malloc'd) */
45};
46
47#define IFACE_CLEAR_ALL 0 /* Nuke 'em all */
48#define IFACE_CLEAR_ALIASES 1 /* Leave the NCP address */
49
50#define IFACE_ADD_LAST 0 /* Just another alias */
51#define IFACE_ADD_FIRST 1 /* The IPCP address */

--- 14 unchanged lines hidden ---