summaryrefslogtreecommitdiff
path: root/proto/rip
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-01-07 12:02:54 +0100
committerJan Moskyto Matejka <mq@ucw.cz>2016-01-11 09:29:51 +0100
commit6ffa8f53931e2ae8becf8ec6ef09db88737a6a06 (patch)
treec4a2a01133834c41f058d24947964184ca779bcc /proto/rip
parent5b218c3d9bf9357aed0acf535bdfc6684cc5cda4 (diff)
Hidden AF_INET* inside sysdep/
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/packets.c b/proto/rip/packets.c
index 1017eb92..d6968c96 100644
--- a/proto/rip/packets.c
+++ b/proto/rip/packets.c
@@ -713,7 +713,7 @@ rip_open_socket(struct rip_iface *ifa)
sock *sk = sk_new(p->p.pool);
sk->type = SK_UDP;
- sk->af = rip_is_v2(p) ? AF_INET : AF_INET6;
+ sk->fam = rip_is_v2(p) ? SK_FAM_IPV4 : SK_FAM_IPV6;
sk->sport = ifa->cf->port;
sk->dport = ifa->cf->port;
sk->iface = ifa->iface;