From 08b3a24da5bbd1bab09d6a2400cdf7705d5e18a7 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 17 May 2016 15:21:49 +0200 Subject: 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. --- proto/radv/packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/radv') 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; -- cgit v1.2.3