Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154266518
D32956.id98393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D32956.id98393.diff
View Options
Index: usr.sbin/rtsold/rtsold.8
===================================================================
--- usr.sbin/rtsold/rtsold.8
+++ usr.sbin/rtsold/rtsold.8
@@ -39,27 +39,27 @@
.\"
.Sh SYNOPSIS
.Nm
-.Op Fl dDfFmu1
+.Op Fl dDfFimu1
.Op Fl M Ar script-name
.Op Fl O Ar script-name
.Op Fl p Ar pidfile
.Op Fl R Ar script-name
.Ar interface ...
.Nm
-.Op Fl dDfFmu1
+.Op Fl dDfFimu1
.Op Fl M Ar script-name
.Op Fl O Ar script-name
.Op Fl p Ar pidfile
.Op Fl R Ar script-name
.Fl a
.Nm rtsol
-.Op Fl dDu
+.Op Fl dDiu
.Op Fl M Ar script-name
.Op Fl O Ar script-name
.Op Fl R Ar script-name
.Ar interface ...
.Nm rtsol
-.Op Fl dDu
+.Op Fl dDiu
.Op Fl M Ar script-name
.Op Fl O Ar script-name
.Op Fl R Ar script-name
@@ -194,6 +194,12 @@
.Xr sysctl 8
and
.Xr ifconfig 8 .
+.It Fl i
+Transmit Router Solicitation packets immediately, without waiting the
+normal random (between 0 and 1 second) delay.
+This option should not be used on networks where it might result in
+congestion due to many hosts simultaneously (re)connecting and
+sending such packets.
.It Fl m
Enable mobility support.
If this option is specified,
Index: usr.sbin/rtsold/rtsold.c
===================================================================
--- usr.sbin/rtsold/rtsold.c
+++ usr.sbin/rtsold/rtsold.c
@@ -99,6 +99,7 @@
/* static variables and functions */
static int mobile_node = 0;
+static int no_solicitation_delay = 0;
static sig_atomic_t do_dump, do_exit;
static struct pidfh *pfh;
@@ -125,11 +126,11 @@
progname = basename(argv[0]);
if (strcmp(progname, "rtsold") == 0) {
- opts = "adDfFm1M:O:p:R:u";
+ opts = "adDfFim1M:O:p:R:u";
once = 0;
pidfilepath = NULL;
} else {
- opts = "adDFM:O:R:u";
+ opts = "adDFiM:O:R:u";
fflag = 1;
once = 1;
}
@@ -151,6 +152,9 @@
case 'F':
Fflag = 1;
break;
+ case 'i':
+ no_solicitation_delay = 1;
+ break;
case 'm':
mobile_node = 1;
break;
@@ -717,7 +721,10 @@
ifi->timer = tm_max; /* stop timer(valid?) */
break;
case IFS_DELAY:
- interval = arc4random_uniform(MAX_RTR_SOLICITATION_DELAY * MILLION);
+ if (no_solicitation_delay == 0)
+ interval = arc4random_uniform(MAX_RTR_SOLICITATION_DELAY * MILLION);
+ else
+ interval = 0;
ifi->timer.tv_sec = interval / MILLION;
ifi->timer.tv_nsec = (interval % MILLION) * 1000;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 12:02 PM (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32275840
Default Alt Text
D32956.id98393.diff (2 KB)
Attached To
Mode
D32956: rtsol/rtsold: Add option to skip random delay
Attached
Detach File
Event Timeline
Log In to Comment