diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-25 16:39:53 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-25 16:39:53 +0000 |
commit | 98ac61766d81d9f20c4a7c7e12859c3b82b24f4c (patch) | |
tree | 214b6571623582884aede8f634b146b330e72bc3 /proto/ospf/packet.c | |
parent | 5ed68e46d781f8a14d3ef3ffd7fe3afc4a62260e (diff) |
A lot of changes:
- metric is 3 byte long now
- summary lsa originating
- more OSPF areas possible
- virtual links
- better E1/E2 routes handling
- some bug fixes..
I have to do:
- md5 auth (last mandatory item from rfc2328)
- !!!!DEBUG!!!!! (mainly virtual link system has probably a lot of bugs)
- 2328 appendig E
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r-- | proto/ospf/packet.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 26cc4d43..4f5db664 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -226,19 +226,26 @@ ospf_err_hook(sock * sk, int err UNUSED) } void -sk_send_to_agt(sock * sk, u16 len, struct ospf_iface *ifa, u8 state) +ospf_send_to_agt(sock * sk, u16 len, struct ospf_iface *ifa, u8 state) { struct ospf_neighbor *n; WALK_LIST(NODE n, ifa->neigh_list) if (n->state >= state) - sk_send_to(sk, len, n->ip, OSPF_PROTO); + ospf_send_to(sk, len, n->ip); } void -sk_send_to_bdr(sock * sk, u16 len, struct ospf_iface *ifa) +ospf_send_to_bdr(sock * sk, u16 len, struct ospf_iface *ifa) { if (ipa_compare(ifa->drip, ipa_from_u32(0)) != 0) - sk_send_to(sk, len, ifa->drip, OSPF_PROTO); + ospf_send_to(sk, len, ifa->drip); if (ipa_compare(ifa->bdrip, ipa_from_u32(0)) != 0) - sk_send_to(sk, len, ifa->bdrip, OSPF_PROTO); + ospf_send_to(sk, len, ifa->bdrip); } + +void +ospf_send_to(sock *sk, u16 len, ip_addr ip) +{ + sk_send_to(sk, len, ip, OSPF_PROTO); +} + |