mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
IO: Minor changes in socket AF handing
AF can be specified implicitly by saddr or daddr, flags SKF_V4ONLY and SKF_V6ONLY are to be removed.
This commit is contained in:
@@ -410,9 +410,9 @@ radv_sk_open(struct radv_iface *ifa)
|
||||
{
|
||||
sock *sk = sk_new(ifa->ra->p.pool);
|
||||
sk->type = SK_IP;
|
||||
sk->subtype = SK_IPV6;
|
||||
sk->dport = ICMPV6_PROTO;
|
||||
sk->saddr = ifa->addr->ip;
|
||||
sk->fam = SK_FAM_IPV6;
|
||||
|
||||
sk->ttl = 255; /* Mandatory for Neighbor Discovery packets */
|
||||
sk->rx_hook = radv_rx_hook;
|
||||
|
Reference in New Issue
Block a user