Deleted Added
full compact
af_inet.c (202289) af_inet.c (222527)
1/*
2 * Copyright (c) 1983, 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

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

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
30#ifndef lint
31static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 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

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

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
30#ifndef lint
31static const char rcsid[] =
32 "$FreeBSD: head/sbin/ifconfig/af_inet.c 202289 2010-01-14 15:27:18Z emaste $";
32 "$FreeBSD: head/sbin/ifconfig/af_inet.c 222527 2011-05-31 14:40:21Z bz $";
33#endif /* not lint */
34
35#include <sys/types.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <ctype.h>

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

195 .af_aifaddr = SIOCAIFADDR,
196 .af_ridreq = &in_ridreq,
197 .af_addreq = &in_addreq,
198};
199
200static __constructor void
201inet_ctor(void)
202{
33#endif /* not lint */
34
35#include <sys/types.h>
36#include <sys/ioctl.h>
37#include <sys/socket.h>
38#include <net/if.h>
39
40#include <ctype.h>

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

195 .af_aifaddr = SIOCAIFADDR,
196 .af_ridreq = &in_ridreq,
197 .af_addreq = &in_addreq,
198};
199
200static __constructor void
201inet_ctor(void)
202{
203 if (!feature_present("inet"))
204 return;
203 af_register(&af_inet);
204}
205 af_register(&af_inet);
206}