Deleted Added
full compact
if.h (92081) if.h (92725)
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 92081 2002-03-11 09:26:07Z mux $
34 * $FreeBSD: head/sys/net/if.h 92725 2002-03-19 21:54:18Z alfred $
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

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

324
325#ifndef _KERNEL
326struct if_nameindex {
327 u_int if_index; /* 1, 2, ... */
328 char *if_name; /* null terminated name: "le0", ... */
329};
330
331__BEGIN_DECLS
35 */
36
37#ifndef _NET_IF_H_
38#define _NET_IF_H_
39
40#include <sys/queue.h>
41
42/*

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

324
325#ifndef _KERNEL
326struct if_nameindex {
327 u_int if_index; /* 1, 2, ... */
328 char *if_name; /* null terminated name: "le0", ... */
329};
330
331__BEGIN_DECLS
332u_int if_nametoindex __P((const char *));
333char *if_indextoname __P((u_int, char *));
334struct if_nameindex *if_nameindex __P((void));
335void if_freenameindex __P((struct if_nameindex *));
332u_int if_nametoindex(const char *);
333char *if_indextoname(u_int, char *);
334struct if_nameindex *if_nameindex(void);
335void if_freenameindex(struct if_nameindex *);
336__END_DECLS
337#endif
338
339#ifdef _KERNEL
340struct thread;
341
342/* XXX - this should go away soon. */
343#include <net/if_var.h>
344#endif
345
346#endif /* !_NET_IF_H_ */
336__END_DECLS
337#endif
338
339#ifdef _KERNEL
340struct thread;
341
342/* XXX - this should go away soon. */
343#include <net/if_var.h>
344#endif
345
346#endif /* !_NET_IF_H_ */