Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175599516
D56133.id175797.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56133.id175797.diff
View Options
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1567,6 +1567,16 @@
NET_EPOCH_ASSERT();
+ /*
+ * Address autoconfiguration based on Section 5.5.3 of RFC 4862.
+ * 5.5.3 (a). Ignore the prefix without the A bit set.
+ * 5.5.3 (b). the link-local prefix should have been ignored in nd6_ra_input.
+ * 5.5.3 (c). Consistency check on lifetimes: pltime <= vltime.
+ */
+ if (new->ndpr_raf_auto == 0 ||
+ new->ndpr_pltime > new->ndpr_vltime)
+ return;
+
/* check if prefix already exists on the same interface */
if ((pr = nd6_prefix_lookup(new)) != NULL)
nd6_prefix_update(new, pr);
@@ -1602,18 +1612,6 @@
if (dr != NULL)
pfxrtr_add(pr, dr);
- /*
- * Address autoconfiguration based on Section 5.5.3 of RFC 4862.
- * Note that pr must be non NULL at this point.
- *
- * 5.5.3 (a). Ignore the prefix without the A bit set.
- * 5.5.3 (b). the link-local prefix should have been ignored in nd6_ra_input.
- * 5.5.3 (c). Consistency check on lifetimes: pltime <= vltime.
- */
- if (new->ndpr_raf_auto == 0 ||
- new->ndpr_pltime > new->ndpr_vltime)
- goto end;
-
/*
* 5.5.3 (d). If the prefix advertised is not equal to the prefix of
* an address configured by stateless autoconfiguration already in the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 11:06 PM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40709212
Default Alt Text
D56133.id175797.diff (1 KB)
Attached To
Mode
D56133: nd6: Ignore entire PI if violates RFC 4862 section 5.5.3
Attached
Detach File
Event Timeline
Log In to Comment