summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorgdt <gdt>2005-12-29 15:59:57 +0000
committergdt <gdt>2005-12-29 15:59:57 +0000
commit6083e1f82ce3a33d9929dea8c64cbc5ffe486000 (patch)
tree48872266c1f9f0741ea27513560248420a1632f7 /zebra/rt_socket.c
parenta3214b79aceed58ae638afe62d9db149f3bc81c7 (diff)
2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
* rt_socket.c (kernel_rtm_ipv4): Use AF_INET rather than AF_UNSPEC for mask. From David Young.
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index 67d29538..f9f194eb 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -146,7 +146,7 @@ kernel_rtm_ipv4 (int cmd, struct prefix *p, struct rib *rib, int family)
else
{
masklen2ip (p->prefixlen, &sin_mask.sin_addr);
- sin_mask.sin_family = AF_UNSPEC;
+ sin_mask.sin_family = AF_INET;
#ifdef HAVE_SIN_LEN
sin_mask.sin_len = sin_masklen (sin_mask.sin_addr);
#endif /* HAVE_SIN_LEN */