summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd/timer.c
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-06-05 07:55:51 +0000
committerhrs <hrs@FreeBSD.org>2011-06-05 07:55:51 +0000
commitba519ba6ac678da65d1e741ea85e13f187cb0eee (patch)
tree01f49e6fb12cc166700399559ed824f32cbf1760 /usr.sbin/rtadvd/timer.c
parentc471b1b104052433b565478e928f10a7718d7420 (diff)
downloadFreeBSD-src-ba519ba6ac678da65d1e741ea85e13f187cb0eee.zip
FreeBSD-src-ba519ba6ac678da65d1e741ea85e13f187cb0eee.tar.gz
Support dynamically-added/removed interfaces. The rtadvd(8) daemon detects an
interface addition/removal via RTM_IFANNOUNCE message and update the internal structure. TO BE FIXED: The advertising interface list still depends on the command line argument. The configuration file cannot be reloaded.
Diffstat (limited to 'usr.sbin/rtadvd/timer.c')
-rw-r--r--usr.sbin/rtadvd/timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/rtadvd/timer.c b/usr.sbin/rtadvd/timer.c
index 954400d..8cad6ad 100644
--- a/usr.sbin/rtadvd/timer.c
+++ b/usr.sbin/rtadvd/timer.c
@@ -92,6 +92,9 @@ void
rtadvd_remove_timer(struct rtadvd_timer *rat)
{
+ if (rat == NULL)
+ return;
+
TAILQ_REMOVE(&ra_timer, rat, rat_next);
free(rat);
}
OpenPOWER on IntegriCloud