af_inet6.c (224179) | af_inet6.c (228571) |
---|---|
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 224179 2011-07-18 10:29:16Z bz $"; | 32 "$FreeBSD: head/sbin/ifconfig/af_inet6.c 228571 2011-12-16 12:16:56Z glebius $"; |
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> --- 261 unchanged lines hidden (view full) --- 302 printf("vltime "); 303 if (lifetime.ia6t_expire) { 304 printf("%s ", lifetime.ia6t_expire < t 305 ? "0" : sec2str(lifetime.ia6t_expire - t)); 306 } else 307 printf("infty "); 308 } 309 | 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> --- 261 unchanged lines hidden (view full) --- 302 printf("vltime "); 303 if (lifetime.ia6t_expire) { 304 printf("%s ", lifetime.ia6t_expire < t 305 ? "0" : sec2str(lifetime.ia6t_expire - t)); 306 } else 307 printf("infty "); 308 } 309 |
310 print_vhid(ifa, " "); 311 |
|
310 putchar('\n'); 311} 312 313#define SIN6(x) ((struct sockaddr_in6 *) &(x)) 314static struct sockaddr_in6 *sin6tab[] = { 315 SIN6(in6_ridreq.ifr_addr), SIN6(in6_addreq.ifra_addr), 316 SIN6(in6_addreq.ifra_prefixmask), SIN6(in6_addreq.ifra_dstaddr) 317}; --- 241 unchanged lines hidden --- | 312 putchar('\n'); 313} 314 315#define SIN6(x) ((struct sockaddr_in6 *) &(x)) 316static struct sockaddr_in6 *sin6tab[] = { 317 SIN6(in6_ridreq.ifr_addr), SIN6(in6_addreq.ifra_addr), 318 SIN6(in6_addreq.ifra_prefixmask), SIN6(in6_addreq.ifra_dstaddr) 319}; --- 241 unchanged lines hidden --- |