Added source addr for multicast socket.

This commit is contained in:
Ondrej Filip 2004-06-03 08:18:49 +00:00
parent 7d72aadb8a
commit 591656cdd5

View file

@ -49,7 +49,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
ifa->dr_sk->type=SK_IP_MC; ifa->dr_sk->type=SK_IP_MC;
ifa->dr_sk->sport=0; ifa->dr_sk->sport=0;
ifa->dr_sk->dport=OSPF_PROTO; 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->daddr=AllDRouters;
ifa->dr_sk->tos=IP_PREC_INTERNET_CONTROL; ifa->dr_sk->tos=IP_PREC_INTERNET_CONTROL;
ifa->dr_sk->ttl=1; ifa->dr_sk->ttl=1;
@ -204,7 +204,7 @@ ospf_open_mc_socket(struct ospf_iface *ifa)
mcsk->type=SK_IP_MC; mcsk->type=SK_IP_MC;
mcsk->sport=0; mcsk->sport=0;
mcsk->dport=OSPF_PROTO; mcsk->dport=OSPF_PROTO;
mcsk->saddr=ipa_from_u32(0); mcsk->saddr=AllSPFRouters;
mcsk->daddr=AllSPFRouters; mcsk->daddr=AllSPFRouters;
mcsk->tos=IP_PREC_INTERNET_CONTROL; mcsk->tos=IP_PREC_INTERNET_CONTROL;
mcsk->ttl=1; mcsk->ttl=1;