mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Update to FreeBSD Stable/9 2015-04-08
This commit is contained in:
@@ -290,6 +290,8 @@ in6_status(int s __unused, const struct ifaddrs *ifa)
|
||||
printf("autoconf ");
|
||||
if ((flags6 & IN6_IFF_TEMPORARY) != 0)
|
||||
printf("temporary ");
|
||||
if ((flags6 & IN6_IFF_PREFER_SOURCE) != 0)
|
||||
printf("prefer_source ");
|
||||
|
||||
if (scopeid)
|
||||
printf("scopeid 0x%x ", scopeid);
|
||||
@@ -509,6 +511,8 @@ static struct cmd inet6_cmds[] = {
|
||||
DEF_CMD("-deprecated", -IN6_IFF_DEPRECATED, setip6flags),
|
||||
DEF_CMD("autoconf", IN6_IFF_AUTOCONF, setip6flags),
|
||||
DEF_CMD("-autoconf", -IN6_IFF_AUTOCONF, setip6flags),
|
||||
DEF_CMD("prefer_source",IN6_IFF_PREFER_SOURCE, setip6flags),
|
||||
DEF_CMD("-prefer_source",-IN6_IFF_PREFER_SOURCE,setip6flags),
|
||||
DEF_CMD("accept_rtadv", ND6_IFF_ACCEPT_RTADV, setnd6flags),
|
||||
DEF_CMD("-accept_rtadv",-ND6_IFF_ACCEPT_RTADV, setnd6flags),
|
||||
DEF_CMD("no_radr", ND6_IFF_NO_RADR, setnd6flags),
|
||||
@@ -519,8 +523,6 @@ static struct cmd inet6_cmds[] = {
|
||||
DEF_CMD("-ifdisabled", -ND6_IFF_IFDISABLED, setnd6flags),
|
||||
DEF_CMD("nud", ND6_IFF_PERFORMNUD, setnd6flags),
|
||||
DEF_CMD("-nud", -ND6_IFF_PERFORMNUD, setnd6flags),
|
||||
DEF_CMD("prefer_source",ND6_IFF_PREFER_SOURCE, setnd6flags),
|
||||
DEF_CMD("-prefer_source",-ND6_IFF_PREFER_SOURCE,setnd6flags),
|
||||
DEF_CMD("auto_linklocal",ND6_IFF_AUTO_LINKLOCAL,setnd6flags),
|
||||
DEF_CMD("-auto_linklocal",-ND6_IFF_AUTO_LINKLOCAL,setnd6flags),
|
||||
DEF_CMD("no_prefer_iface",ND6_IFF_NO_PREFER_IFACE,setnd6flags),
|
||||
|
@@ -86,7 +86,7 @@ static const char rcsid[] =
|
||||
|
||||
/*
|
||||
* Since "struct ifreq" is composed of various union members, callers
|
||||
* should pay special attention to interprete the value.
|
||||
* should pay special attention to interpret the value.
|
||||
* (.e.g. little/big endian difference in the structure.)
|
||||
*/
|
||||
struct ifreq ifr;
|
||||
|
@@ -1165,8 +1165,14 @@ main(int argc, char *argv[])
|
||||
/* signal handling */
|
||||
if (seenalrm) {
|
||||
/* last packet sent, timeout reached? */
|
||||
if (npackets && ntransmitted >= npackets)
|
||||
break;
|
||||
if (npackets && ntransmitted >= npackets) {
|
||||
struct timeval zerotime = {0, 0};
|
||||
itimer.it_value = zerotime;
|
||||
itimer.it_interval = zerotime;
|
||||
(void)setitimer(ITIMER_REAL, &itimer, NULL);
|
||||
seenalrm = 0; /* clear flag */
|
||||
continue;
|
||||
}
|
||||
retransmit();
|
||||
seenalrm = 0;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user