Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163325381
D49905.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
D49905.diff
View Options
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 6, 2024
+.Dd April 24, 2025
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -448,11 +448,10 @@
allow you to respecify the host portion.
.It Cm anycast
(Inet6 only.)
-Specify that the address configured is an anycast address.
-Based on the current specification,
-only routers may configure anycast addresses.
-Anycast address will not be used as source address of any of outgoing
-IPv6 packets.
+Specify that the address configured is an anycast address,
+as described in RFC 4291 section 2.6.
+Anycast addresses will not be used as source address of any outgoing
+IPv6 packets unless an application explicitly binds to the address.
.It Cm arp
Enable the use of the Address Resolution Protocol
.Pq Xr arp 4
@@ -3326,6 +3325,16 @@
.Xr rc 8 ,
.Xr routed 8 ,
.Xr sysctl 8
+.Rs
+.%R RFC 3484
+.%D February 2003
+.%T "Default Address Selection for Internet Protocol version 6 (IPv6)"
+.Re
+.Rs
+.%R RFC 4291
+.%D February 2006
+.%T "IP Version 6 Addressing Architecture"
+.Re
.Sh HISTORY
The
.Nm
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -214,14 +214,13 @@
}
/*
- * XXX: bind to an anycast address might accidentally
- * cause sending a packet with anycast source address.
- * We should allow to bind to a deprecated address, since
- * the application dares to use it.
+ * We used to prohibit binding to an anycast address here,
+ * based on RFC3513, but that restriction was removed in
+ * RFC4291.
*/
if (ifa != NULL &&
((struct in6_ifaddr *)ifa)->ia6_flags &
- (IN6_IFF_ANYCAST | IN6_IFF_NOTREADY | IN6_IFF_DETACHED)) {
+ (IN6_IFF_NOTREADY | IN6_IFF_DETACHED)) {
NET_EPOCH_EXIT(et);
return (EADDRNOTAVAIL);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 3:29 AM (2 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35390120
Default Alt Text
D49905.diff (1 KB)
Attached To
Mode
D49905: netinet6: allow binding to anycast addresses
Attached
Detach File
Event Timeline
Log In to Comment