diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-06 02:08:27 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-06 02:08:27 +0200 |
commit | eb436e16fd85340d3403a033ee86f973428a2f08 (patch) | |
tree | 7bef00ed3b6a56c0178484ae7bd8eb9a763fb803 /proto/ospf/packet.c | |
parent | e5b5d18c1c8b33e76e954c0696e056fc11701631 (diff) | |
download | bird-eb436e16fd85340d3403a033ee86f973428a2f08.tar bird-eb436e16fd85340d3403a033ee86f973428a2f08.zip |
NBMA networks seems to work, but this should be better. :-)
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r-- | proto/ospf/packet.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index fc60a42..88234da 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -192,3 +192,15 @@ sk_send_to_agt(sock *sk, u16 len, struct ospf_iface *ifa, u8 state) if(n->state>=state) sk_send_to(sk, len, n->ip, OSPF_PROTO); } + +void +sk_send_to_bdr(sock *sk, u16 len, struct ospf_iface *ifa) +{ + struct ospf_neighbor *n; + + if(ipa_compare(ifa->drip,ipa_from_u32(0))!=0) + sk_send_to(sk, len, ifa->drip, OSPF_PROTO); + if(ipa_compare(ifa->bdrip,ipa_from_u32(0))!=0) + sk_send_to(sk, len, ifa->bdrip, OSPF_PROTO); +} + |