summaryrefslogtreecommitdiff
path: root/proto/ospf
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/ospf
parent5b218c3d9bf9357aed0acf535bdfc6684cc5cda4 (diff)
Hidden AF_INET* inside sysdep/
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 8c997ced..6001ac26 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -111,7 +111,7 @@ ospf_sk_open(struct ospf_iface *ifa)
sk->dport = OSPF_PROTO;
sk->saddr = ifa->addr->ip;
sk->iface = ifa->iface;
- sk->af = ospf_is_v2(p) ? AF_INET : AF_INET6;
+ sk->fam = ospf_is_v2(p) ? SK_FAM_IPV4 : SK_FAM_IPV6;
sk->tos = ifa->cf->tx_tos;
sk->priority = ifa->cf->tx_priority;
@@ -194,7 +194,7 @@ ospf_open_vlink_sk(struct ospf_proto *p)
sock *sk = sk_new(p->p.pool);
sk->type = SK_IP;
sk->dport = OSPF_PROTO;
- sk->af = ospf_is_v2(p) ? AF_INET : AF_INET6;
+ sk->fam = ospf_is_v2(p) ? SK_FAM_IPV4 : SK_FAM_IPV6;
/* FIXME: configurable tos/priority ? */
sk->tos = IP_PREC_INTERNET_CONTROL;