Skip to content

Commit 159ba13

Browse files
committed
ospfd: fix spell check
Signed-off-by: Chirag Shah <chirag@nvidia.com>
1 parent 106048b commit 159ba13

27 files changed

+70
-71
lines changed

ospfd/ospf_abr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ void ospf_generate_indication_lsa(struct ospf *ospf, struct ospf_area *area)
15821582

15831583
area_fr_not_supp = ospf_check_fr_enabled_all(ospf) ? false : true;
15841584

1585-
/* If any one of the area doestn't support FR, generate
1585+
/* If any one of the area doesn't support FR, generate
15861586
* indication LSA on behalf of that area.
15871587
*/
15881588

@@ -2065,7 +2065,7 @@ void ospf_abr_nssa_task(struct ospf *ospf) /* called only if any_nssa */
20652065
*if (IS_DEBUG_OSPF_NSSA)
20662066
* zlog_debug ("ospf_abr_nssa_task(): announce nssa defaults");
20672067
*ospf_abr_announce_nssa_defaults (ospf);
2068-
* havnt a clue what above is supposed to do.
2068+
* haven't a clue what above is supposed to do.
20692069
*/
20702070

20712071
/* Flush any unapproved previous translates from Global Data Base */

ospfd/ospf_abr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#define OSPF_ABR_TASK_DELAY 5
1111
#define OSPF_ABR_DNA_TIMER 10
12-
/* Delay in announceing Non-DNA routers
12+
/* Delay in announcing Non-DNA routers
1313
* so that LSAs are completely synced
1414
* before generating indication LSAs.
1515
*/

ospfd/ospf_apiserver.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ DEFINE_MTYPE_STATIC(OSPFD, APISERVER_MSGFILTER, "API Server Message Filter");
6262
/* List of all active connections. */
6363
struct list *apiserver_list;
6464

65-
/* Indicates that API the server socket local addresss has been
65+
/* Indicates that API the server socket local address has been
6666
* specified.
6767
*/
6868
struct in_addr ospf_apiserver_addr;
@@ -249,7 +249,7 @@ struct ospf_apiserver *ospf_apiserver_new(int fd_sync, int fd_async)
249249
/* list of registered opaque types that application uses */
250250
new->opaque_types = list_new();
251251

252-
/* Initialize temporary strage for LSA instances to be refreshed. */
252+
/* Initialize temporary storage for LSA instances to be refreshed. */
253253
if (IS_DEBUG_OSPF_CLIENT_API)
254254
zlog_debug("API: Initiallize the reserve LSDB");
255255
memset(&new->reserve, 0, sizeof(struct ospf_lsdb));
@@ -340,7 +340,7 @@ void ospf_apiserver_free(struct ospf_apiserver *apiserv)
340340
msg_fifo_free(apiserv->out_sync_fifo);
341341
msg_fifo_free(apiserv->out_async_fifo);
342342

343-
/* Clear temporary strage for LSA instances to be refreshed. */
343+
/* Clear temporary storage for LSA instances to be refreshed. */
344344
if (IS_DEBUG_OSPF_CLIENT_API)
345345
zlog_debug("API: Delete all LSAs from reserve LSDB, total=%ld",
346346
apiserv->reserve.total);
@@ -557,7 +557,7 @@ int ospf_apiserver_serv_sock_family(unsigned short port, int family)
557557
sockopt_reuseaddr(accept_sock);
558558
sockopt_reuseport(accept_sock);
559559

560-
/* Bind socket to optional lcoal address and port. */
560+
/* Bind socket to optional local address and port. */
561561
if (ospf_apiserver_addr.s_addr)
562562
sockunion2ip(&su) = ospf_apiserver_addr.s_addr;
563563
rc = sockunion_bind(accept_sock, &su, port, &su);
@@ -1355,7 +1355,7 @@ int ospf_apiserver_handle_sync_lsdb(struct ospf_apiserver *apiserv,
13551355

13561356
/*
13571357
* -----------------------------------------------------------
1358-
* Followings are functions for synchronization.
1358+
* Following are functions for synchronization.
13591359
* -----------------------------------------------------------
13601360
*/
13611361

ospfd/ospf_asbr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ bool is_valid_summary_addr(struct prefix_ipv4 *p)
425425
if (p->prefix.s_addr == INADDR_ANY)
426426
return false;
427427

428-
/*Host route shouldn't be configured as summary addres*/
428+
/*Host route shouldn't be configured as summary address*/
429429
if (p->prefixlen == IPV4_MAX_BITLEN)
430430
return false;
431431

@@ -670,7 +670,7 @@ struct ospf_lsa *ospf_originate_summary_lsa(struct ospf *ospf,
670670
__func__, &aggr->p.prefix, aggr->p.prefixlen);
671671

672672
/* This case to handle when the overlapping aggregator address
673-
* is availbe.Best match will be considered.So need to delink
673+
* is available.Best match will be considered.So need to delink
674674
* from old aggregator and link to the new aggr.
675675
*/
676676
if (ei->aggr_route) {

ospfd/ospf_errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static struct log_ref ferr_ospf_err[] = {
123123
{
124124
.code = EC_OSPF_INIT_FAIL,
125125
.title = "OSPF Initialization failure",
126-
.description = "OSPF failed to initialized OSPF default insance",
126+
.description = "OSPF failed to initialized OSPF default instance",
127127
.suggestion = "Ensure there is adequate memory on the device. If the problem persists, report the problem for troubleshooting"
128128
},
129129
{

ospfd/ospf_flood.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static void ospf_flood_delayed_lsa_ack(struct ospf_neighbor *inbr,
117117
RFC 2328 Section 13.5 */
118118

119119
/* Whether LSA is more recent or not, and whether this is in
120-
response to the LSA being sent out recieving interface has been
120+
response to the LSA being sent out receiving interface has been
121121
worked out previously */
122122

123123
/* Deal with router as BDR */
@@ -513,7 +513,7 @@ int ospf_flood(struct ospf *ospf, struct ospf_neighbor *nbr,
513513
ospf_refresh_dna_type5_and_type7_lsas(ospf);
514514
}
515515

516-
/* Check if we recived an indication LSA flush on backbone
516+
/* Check if we received an indication LSA flush on backbone
517517
* network.
518518
*/
519519
ospf_recv_indication_lsa_flush(new);
@@ -807,7 +807,7 @@ int ospf_flood_through_interface(struct ospf_interface *oi,
807807
if back out on the interface. The LSA will be retransmitted
808808
upon expiration of each neighbor's retransmission timer. This
809809
will allow time to receive a multicast multicast link state
810-
acknoweldgement and remove the LSA from each neighbor's link
810+
acknowledgement and remove the LSA from each neighbor's link
811811
state retransmission list. */
812812
if (oi->p2mp_delay_reflood &&
813813
(oi->type == OSPF_IFTYPE_POINTOMULTIPOINT) &&

ospfd/ospf_flood.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ struct ospf_lsa_list_entry {
2121
union {
2222
/*
2323
* Time associated with the list entry. For example, for a
24-
* neigbhor link retransmission list, this is the
24+
* neighbor link retransmission list, this is the
2525
* retransmission time.
2626
*/
2727
struct timeval list_entry_timeval;
2828

2929
/*
30-
* Destanation address specific to the LSA list. For example,
31-
* the distination for an associated direct LS acknowledgment.
30+
* Destination address specific to the LSA list. For example,
31+
* the destination for an associated direct LS acknowledgment.
3232
*/
3333
struct in_addr list_entry_dst_addr;
3434
} u;

ospfd/ospf_interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct ospf_interface *ospf_if_table_lookup(struct interface *ifp,
205205
p = *prefix;
206206
p.prefixlen = IPV4_MAX_BITLEN;
207207

208-
/* route_node_get implicitely locks */
208+
/* route_node_get implicitly locks */
209209
if ((rn = route_node_lookup(IF_OIFS(ifp), &p))) {
210210
rninfo = (struct ospf_interface *)rn->info;
211211
route_unlock_node(rn);
@@ -421,7 +421,7 @@ int ospf_if_is_up(struct ospf_interface *oi)
421421
return if_is_up(oi->ifp);
422422
}
423423

424-
/* Lookup OSPF interface by router LSA posistion */
424+
/* Lookup OSPF interface by router LSA position */
425425
struct ospf_interface *ospf_if_lookup_by_lsa_pos(struct ospf_area *area,
426426
int lsa_pos)
427427
{

ospfd/ospf_interface.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
#define SET_IF_PARAM(S, P) ((S)->P##__config) = 1
4343

4444
struct ospf_if_params {
45-
DECLARE_IF_PARAM(uint32_t,
46-
transmit_delay); /* Interface Transmisson Delay */
45+
DECLARE_IF_PARAM(uint32_t, transmit_delay); /* Interface Transmission Delay */
4746
DECLARE_IF_PARAM(uint32_t,
4847
output_cost_cmd); /* Command Interface Output Cost */
4948
DECLARE_IF_PARAM(uint32_t,
@@ -232,11 +231,11 @@ struct ospf_interface {
232231
struct prefix *address; /* Interface prefix */
233232
struct connected *connected; /* Pointer to connected */
234233

235-
/* Configured varables. */
234+
/* Configured variables. */
236235
struct ospf_if_params *params;
237236

238237
uint32_t crypt_seqnum; /* Cryptographic Sequence Number */
239-
uint32_t output_cost; /* Acutual Interface Output Cost */
238+
uint32_t output_cost; /* Actual Interface Output Cost */
240239

241240
/* Neighbor information. */
242241
struct route_table *nbrs; /* OSPF Neighbor List */

ospfd/ospf_lsa.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ uint8_t router_lsa_flags(struct ospf_area *area)
386386
/* Just sanity check */
387387
UNSET_FLAG(flags, ROUTER_LSA_VIRTUAL);
388388

389-
/* Set Shortcut ABR behabiour flag. */
389+
/* Set Shortcut ABR behaviour flag. */
390390
UNSET_FLAG(flags, ROUTER_LSA_SHORTCUT);
391391
if (area->ospf->abr_type == OSPF_ABR_SHORTCUT)
392392
if (!OSPF_IS_AREA_BACKBONE(area))
@@ -1099,7 +1099,7 @@ static struct ospf_lsa *ospf_network_lsa_new(struct ospf_interface *oi)
10991099

11001100
/* Remember prior network LSA sequence numbers, even if we stop
11011101
* originating one for this oi, to try avoid re-originating LSAs with a
1102-
* prior sequence number, and thus speed up adjency forming &
1102+
* prior sequence number, and thus speed up adjacency forming &
11031103
* convergence.
11041104
*/
11051105
if ((oip = ospf_lookup_if_params(oi->ifp, oi->address->u.prefix4))) {
@@ -1301,7 +1301,7 @@ ospf_summary_lsa_prepare_and_flood(struct prefix_ipv4 *p, uint32_t metric,
13011301
if (!(new = ospf_summary_lsa_new(area, (struct prefix *)p, metric, id)))
13021302
return NULL;
13031303

1304-
/* Instlal LSA to LSDB. */
1304+
/* Install LSA to LSDB. */
13051305
new = ospf_lsa_install(area->ospf, NULL, new);
13061306

13071307
/* Update LSA origination count. */
@@ -3014,7 +3014,7 @@ struct ospf_lsa *ospf_lsa_install(struct ospf *ospf, struct ospf_interface *oi,
30143014
/* Ref rfc3623 section 3.2.3
30153015
* Installing new lsa or change in the existing LSA
30163016
* or flushing existing LSA leads to topo change
3017-
* and trigger SPF caculation.
3017+
* and trigger SPF calculation.
30183018
* So, router should be aborted from HELPER role
30193019
* if it is detected as TOPO change.
30203020
*/
@@ -3909,10 +3909,10 @@ enum lsid_status ospf_lsa_unique_id(struct ospf *ospf, struct ospf_lsdb *lsdb,
39093909
if (lsa) {
39103910
struct as_external_lsa *al =
39113911
(struct as_external_lsa *)lsa->data;
3912-
/* Ref rfc2328,Appendex E.1
3912+
/* Ref rfc2328,Appendix E.1
39133913
* If router already originated the external lsa with lsid
39143914
* as the current prefix, and the masklens are same then
3915-
* terminate the LSID algorithem.
3915+
* terminate the LSID algorithm.
39163916
*/
39173917
if (ip_masklen(al->mask) == p->prefixlen) {
39183918
if (IS_DEBUG_OSPF(lsa, LSA_GENERATE))
@@ -3923,7 +3923,7 @@ enum lsid_status ospf_lsa_unique_id(struct ospf *ospf, struct ospf_lsdb *lsdb,
39233923
id->s_addr = 0xffffffff;
39243924
return LSID_NOT_AVAILABLE;
39253925
} else if (ip_masklen(al->mask) < p->prefixlen) {
3926-
/* Ref rfc2328,Appendex E.2
3926+
/* Ref rfc2328,Appendix E.2
39273927
* the current prefix masklen is greater than the
39283928
* existing LSA, then generate the Link state ID,
39293929
* by setting all host bits in prefix addressa and
@@ -3946,7 +3946,7 @@ enum lsid_status ospf_lsa_unique_id(struct ospf *ospf, struct ospf_lsdb *lsdb,
39463946
return LSID_NOT_AVAILABLE;
39473947
}
39483948
} else {
3949-
/* Ref rfc2328,Appendex E.3
3949+
/* Ref rfc2328,Appendix E.3
39503950
* the current prefix masklen is lesser than the
39513951
* existing LSA,then the originated LSA has to be
39523952
* refreshed by modifying masklen, cost and tag.

0 commit comments

Comments
 (0)