From 98ac61766d81d9f20c4a7c7e12859c3b82b24f4c Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 25 Jun 2004 16:39:53 +0000 Subject: 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 --- proto/ospf/packet.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'proto/ospf/packet.c') diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 26cc4d4..4f5db66 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); +} + -- cgit v1.2.3