From 591656cdd5b13a4626dfb26e45dd02690cdb450c Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 3 Jun 2004 08:18:49 +0000 Subject: Added source addr for multicast socket. --- proto/ospf/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f106a241..113461db 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -49,7 +49,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state) ifa->dr_sk->type=SK_IP_MC; ifa->dr_sk->sport=0; ifa->dr_sk->dport=OSPF_PROTO; - ifa->dr_sk->saddr=ipa_from_u32(0); + ifa->dr_sk->saddr=AllDRouters; ifa->dr_sk->daddr=AllDRouters; ifa->dr_sk->tos=IP_PREC_INTERNET_CONTROL; ifa->dr_sk->ttl=1; @@ -204,7 +204,7 @@ ospf_open_mc_socket(struct ospf_iface *ifa) mcsk->type=SK_IP_MC; mcsk->sport=0; mcsk->dport=OSPF_PROTO; - mcsk->saddr=ipa_from_u32(0); + mcsk->saddr=AllSPFRouters; mcsk->daddr=AllSPFRouters; mcsk->tos=IP_PREC_INTERNET_CONTROL; mcsk->ttl=1; -- cgit v1.2.3