diff options
author | Ondrej Filip <feela@network.cz> | 2004-05-31 15:22:49 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-05-31 15:22:49 +0200 |
commit | 781aa475aaa7503d4a86f0d4b8771cd027d30c04 (patch) | |
tree | 776c01f1436d3068e9f49e3955de52100a337364 /proto/ospf/iface.c | |
parent | de259a41e3175d4080d5a33a39f0279308a25b56 (diff) | |
download | bird-781aa475aaa7503d4a86f0d4b8771cd027d30c04.tar bird-781aa475aaa7503d4a86f0d4b8771cd027d30c04.zip |
Minor bug fix in neighbor state machine.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 2cbff6c..83f6ac3 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -47,8 +47,9 @@ iface_chstate(struct ospf_iface *ifa, u8 state) DBG("%s: Adding new multicast socket for (B)DR\n", p->name); ifa->dr_sk=sk_new(p->pool); ifa->dr_sk->type=SK_IP_MC; + ifa->dr_sk->sport=0; ifa->dr_sk->dport=OSPF_PROTO; - ifa->dr_sk->saddr=AllDRouters; + ifa->dr_sk->saddr=ipa_from_u32(0); ifa->dr_sk->daddr=AllDRouters; ifa->dr_sk->tos=IP_PREC_INTERNET_CONTROL; ifa->dr_sk->ttl=1; @@ -222,8 +223,9 @@ ospf_open_mc_socket(struct ospf_iface *ifa) mcsk=sk_new(p->pool); mcsk->type=SK_IP_MC; + mcsk->sport=0; mcsk->dport=OSPF_PROTO; - mcsk->saddr=AllSPFRouters; + mcsk->saddr=ipa_from_u32(0); mcsk->daddr=AllSPFRouters; mcsk->tos=IP_PREC_INTERNET_CONTROL; mcsk->ttl=1; |