diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-01-07 12:02:54 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-01-11 09:29:51 +0100 |
commit | 6ffa8f53931e2ae8becf8ec6ef09db88737a6a06 (patch) | |
tree | c4a2a01133834c41f058d24947964184ca779bcc /proto/bfd/packets.c | |
parent | 5b218c3d9bf9357aed0acf535bdfc6684cc5cda4 (diff) |
Hidden AF_INET* inside sysdep/
Diffstat (limited to 'proto/bfd/packets.c')
-rw-r--r-- | proto/bfd/packets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/bfd/packets.c b/proto/bfd/packets.c index a28e4c50..b7a057f1 100644 --- a/proto/bfd/packets.c +++ b/proto/bfd/packets.c @@ -204,11 +204,11 @@ bfd_open_rx_sk(struct bfd_proto *p, int multihop, int inet_version) switch (inet_version) { case 4: - sk->af = AF_INET; + sk->fam = SK_FAM_IPV4; sk->flags |= SKF_V4ONLY; break; case 6: - sk->af = AF_INET6; + sk->fam = SK_FAM_IPV6; sk->flags |= SKF_V6ONLY; break; default: @@ -247,10 +247,10 @@ bfd_open_tx_sk(struct bfd_proto *p, ip_addr local, struct iface *ifa) sk->flags = SKF_THREAD | SKF_BIND | SKF_HIGH_PORT; if (ipa_is_ip4(local)) { - sk->af = AF_INET; + sk->fam = SK_FAM_IPV4; sk->flags |= SKF_V4ONLY; } else { - sk->af = AF_INET6; + sk->fam = SK_FAM_IPV6; sk->flags |= SKF_V6ONLY; } |