diff options
Diffstat (limited to 'proto/rip')
-rw-r--r-- | proto/rip/packets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/rip/packets.c b/proto/rip/packets.c index 4fc832d5..85f0bea5 100644 --- a/proto/rip/packets.c +++ b/proto/rip/packets.c @@ -715,6 +715,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->sport = ifa->cf->port; sk->dport = ifa->cf->port; sk->iface = ifa->iface; |