Deleted Added
full compact
ndp.c (78064) ndp.c (81366)
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 78064 2001-06-11 12:39:29Z ume $ */
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 81366 2001-08-09 19:40:35Z sumikawa $ */
2/* $KAME: ndp.c,v 1.65 2001/05/08 04:36:34 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

632 /* KAME specific hack; removed the embedded id */
633 *(u_int16_t *)&sin->sin6_addr.s6_addr[2] = 0;
634#endif
635 }
636 getnameinfo((struct sockaddr *)sin, sin->sin6_len, host_buf,
637 sizeof(host_buf), NULL, 0,
638 NI_WITHSCOPEID | (nflag ? NI_NUMERICHOST : 0));
639 if (cflag == 1) {
2/* $KAME: ndp.c,v 1.65 2001/05/08 04:36:34 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

632 /* KAME specific hack; removed the embedded id */
633 *(u_int16_t *)&sin->sin6_addr.s6_addr[2] = 0;
634#endif
635 }
636 getnameinfo((struct sockaddr *)sin, sin->sin6_len, host_buf,
637 sizeof(host_buf), NULL, 0,
638 NI_WITHSCOPEID | (nflag ? NI_NUMERICHOST : 0));
639 if (cflag == 1) {
640#ifdef RTF_WASCLONED
641 if (rtm->rtm_flags & RTF_WASCLONED)
642 delete(host_buf);
643#else
640 delete(host_buf);
644 delete(host_buf);
645#endif
641 continue;
642 }
643 gettimeofday(&time, 0);
644 if (tflag)
645 ts_print(&time);
646
647 addrwidth = strlen(host_buf);
648 if (addrwidth < W_ADDR)

--- 875 unchanged lines hidden ---
646 continue;
647 }
648 gettimeofday(&time, 0);
649 if (tflag)
650 ts_print(&time);
651
652 addrwidth = strlen(host_buf);
653 if (addrwidth < W_ADDR)

--- 875 unchanged lines hidden ---