Deleted Added
full compact
ifconfig.h (138671) ifconfig.h (139494)
1/*
2 * Copyright (c) 1997 Peter Wemm.
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

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

26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * so there!
33 *
1/*
2 * Copyright (c) 1997 Peter Wemm.
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

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

26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * so there!
33 *
34 * $FreeBSD: head/sbin/ifconfig/ifconfig.h 138671 2004-12-11 02:33:33Z sam $
34 * $FreeBSD: head/sbin/ifconfig/ifconfig.h 139494 2004-12-31 19:46:27Z sam $
35 */
36
37#define __constructor __attribute__((constructor))
38
39struct afswtch;
40struct cmd;
41
42typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp);

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

80 ADDR,
81 MASK,
82 DSTADDR,
83};
84
85struct afswtch {
86 const char *af_name; /* as given on cmd line, e.g. "inet" */
87 short af_af; /* AF_* */
35 */
36
37#define __constructor __attribute__((constructor))
38
39struct afswtch;
40struct cmd;
41
42typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp);

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

80 ADDR,
81 MASK,
82 DSTADDR,
83};
84
85struct afswtch {
86 const char *af_name; /* as given on cmd line, e.g. "inet" */
87 short af_af; /* AF_* */
88 /* print status method */
88 /*
89 * Status is handled one of two ways; if there is an
90 * address associated with the interface then the
91 * associated address family af_status method is invoked
92 * with the appropriate addressin info. Otherwise, if
93 * all possible info is to be displayed and af_other_status
94 * is defined then it is invoked after all address status
95 * is presented.
96 */
89 void (*af_status)(int, const struct rt_addrinfo *);
97 void (*af_status)(int, const struct rt_addrinfo *);
98 void (*af_other_status)(int);
90 /* parse address method */
91 void (*af_getaddr)(const char *, int);
92 /* parse prefix method (IPv6) */
93 void (*af_getprefix)(const char *, int);
94 void (*af_postproc)(int s, const struct afswtch *);
95 u_long af_difaddr; /* set dst if address ioctl */
96 u_long af_aifaddr; /* set if address ioctl */
97 void *af_ridreq; /* */

--- 36 unchanged lines hidden ---
99 /* parse address method */
100 void (*af_getaddr)(const char *, int);
101 /* parse prefix method (IPv6) */
102 void (*af_getprefix)(const char *, int);
103 void (*af_postproc)(int s, const struct afswtch *);
104 u_long af_difaddr; /* set dst if address ioctl */
105 u_long af_aifaddr; /* set if address ioctl */
106 void *af_ridreq; /* */

--- 36 unchanged lines hidden ---