summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-03 10:18:49 +0200
committerOndrej Filip <feela@network.cz>2004-06-03 10:18:49 +0200
commit591656cdd5b13a4626dfb26e45dd02690cdb450c (patch)
tree7538552cef747d78979cc9878239acc68d5d2c1f
parent7d72aadb8acfac16e9b637e6ebb5ce288ebf1d77 (diff)
downloadbird-591656cdd5b13a4626dfb26e45dd02690cdb450c.tar
bird-591656cdd5b13a4626dfb26e45dd02690cdb450c.zip
Added source addr for multicast socket.
-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 f106a24..113461d 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;