diff options
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/dbdes.c | 2 | ||||
-rw-r--r-- | proto/ospf/iface.c | 6 | ||||
-rw-r--r-- | proto/ospf/neighbor.c | 3 | ||||
-rw-r--r-- | proto/ospf/packet.c | 2 | ||||
-rw-r--r-- | proto/ospf/topology.c | 4 |
5 files changed, 8 insertions, 9 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index bd78750c..5b455448 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -147,7 +147,7 @@ ospf_dbdes_send(struct ospf_neighbor *n) } } -void +static void ospf_dbdes_reqladd(struct ospf_dbdes_packet *ps, struct ospf_neighbor *n) { struct ospf_lsa_header *plsa, lsa; diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 70e73b93..df73295d 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -16,19 +16,19 @@ char *ospf_ism[]={ "interface up", "wait timer fired", "backup seen", char *ospf_it[]={ "broadcast", "nbma", "point-to-point", "virtual link" }; -void +static void poll_timer_hook(timer *timer) { ospf_hello_send(timer, 1, NULL); } -void +static void hello_timer_hook(timer *timer) { ospf_hello_send(timer, 0, NULL); } -void +static void wait_timer_hook(timer *timer) { struct ospf_iface *ifa; diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 1ccc2765..3337aab6 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -210,7 +210,7 @@ electdr(list nl) return(n); } -int +static int can_do_adj(struct ospf_neighbor *n) { struct ospf_iface *ifa; @@ -569,7 +569,6 @@ void rxmt_timer_hook(timer *timer) { struct ospf_neighbor *n = (struct ospf_neighbor *)timer->data; - struct ospf_iface *ifa = n->ifa; struct top_hash_entry *en; DBG("%s: RXMT timer fired on interface %s for neigh: %I.\n", diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 441bf04a..7bdc104a 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -36,7 +36,7 @@ ospf_tx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt) return; } -int +static int ospf_rx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt) { int i; diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 81d35cc5..73d2ddd2 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -20,7 +20,7 @@ #define HASH_LO_STEP 2 #define HASH_LO_MIN 8 -void * +static void * originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p) { struct ospf_iface *ifa; @@ -216,7 +216,7 @@ originate_rt_lsa(struct ospf_area *oa) oa->origrt=0; } -void * +static void * originate_net_lsa_body(struct ospf_iface *ifa, u16 *length, struct proto_ospf *po) { |