af_inet6.c (197138) | af_inet6.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_inet6.c 197138 2009-09-12 22:08:20Z hrs $"; | 32 "$FreeBSD: head/sbin/ifconfig/af_inet6.c 222527 2011-05-31 14:40:21Z bz $"; |
33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/ioctl.h> 37#include <sys/socket.h> 38#include <net/if.h> 39 40#include <err.h> --- 495 unchanged lines hidden (view full) --- 536static struct option in6_Lopt = { .opt = "L", .opt_usage = "[-L]", .cb = in6_Lopt_cb }; 537 538static __constructor void 539inet6_ctor(void) 540{ 541#define N(a) (sizeof(a) / sizeof(a[0])) 542 size_t i; 543 | 33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/ioctl.h> 37#include <sys/socket.h> 38#include <net/if.h> 39 40#include <err.h> --- 495 unchanged lines hidden (view full) --- 536static struct option in6_Lopt = { .opt = "L", .opt_usage = "[-L]", .cb = in6_Lopt_cb }; 537 538static __constructor void 539inet6_ctor(void) 540{ 541#define N(a) (sizeof(a) / sizeof(a[0])) 542 size_t i; 543 |
544 if (!feature_present("inet6")) 545 return; 546 |
|
544 for (i = 0; i < N(inet6_cmds); i++) 545 cmd_register(&inet6_cmds[i]); 546 af_register(&af_inet6); 547 opt_register(&in6_Lopt); 548#undef N 549} | 547 for (i = 0; i < N(inet6_cmds); i++) 548 cmd_register(&inet6_cmds[i]); 549 af_register(&af_inet6); 550 opt_register(&in6_Lopt); 551#undef N 552} |