diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-05-17 15:21:49 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-05-17 15:21:49 +0200 |
commit | 08b3a24da5bbd1bab09d6a2400cdf7705d5e18a7 (patch) | |
tree | 41335bdccfca47f09d4aaa3da01038068714af84 /proto/radv | |
parent | 5af7b59660be615fbbd7c20b92b71321c003c43a (diff) |
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.
Diffstat (limited to 'proto/radv')
-rw-r--r-- | proto/radv/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/radv/packets.c b/proto/radv/packets.c index 8f6a1913..915b412f 100644 --- a/proto/radv/packets.c +++ b/proto/radv/packets.c @@ -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; |