Skip to content

Commit d50845e

Browse files
authored
Merge pull request FRRouting#20771 from chiragshah6/frr_dev9
fix spell checks round 4
2 parents b91aa63 + 159ba13 commit d50845e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+139
-140
lines changed

bfdd/bfd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void ptm_bfd_start_xmt_timer(struct bfd_session *bfd, bool is_echo)
487487
xmt_TO = is_echo ? bfd->echo_xmt_TO : bfd->xmt_TO;
488488

489489
/*
490-
* From section 6.5.2: trasmit interval should be randomly jittered
490+
* From section 6.5.2: transmit interval should be randomly jittered
491491
* between
492492
* 75% and 100% of nominal value, unless detect_mult is 1, then should
493493
* be
@@ -1125,7 +1125,7 @@ struct bfd_session *ptm_bfd_sess_new(struct bfd_peer_cfg *bpc)
11251125

11261126
struct bfd_session *bs_registrate(struct bfd_session *bfd)
11271127
{
1128-
/* Registrate session into data structures. */
1128+
/* Register session into data structures. */
11291129
bfd_key_insert(bfd);
11301130
bfd->discrs.my_discr = ptm_bfd_gen_ID();
11311131
bfd_id_insert(bfd);

bfdd/bfd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ struct bfd_pkt {
129129
};
130130

131131
/*
132-
* Format of authentification.
132+
* Format of authentication.
133133
*/
134134
struct bfd_auth {
135135
uint8_t type;
@@ -538,7 +538,7 @@ void socket_close(int *s);
538538
/*
539539
* bfd_packet.c
540540
*
541-
* Contains the code related with receiving/seding, packing/unpacking BFD data.
541+
* Contains the code related with receiving/sending, packing/unpacking BFD data.
542542
*/
543543
int bp_set_ttlv6(int sd, uint8_t value);
544544
int bp_set_ttl(int sd, uint8_t value);

bfdd/bfd_packet.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ void ptm_bfd_snd(struct bfd_session *bfd, int fbit)
457457
/*
458458
* We can only announce current setting on poll, this
459459
* avoids timing mismatch with our peer and give it
460-
* the oportunity to learn. See `bs_final_handler` for
460+
* the opportunity to learn. See `bs_final_handler` for
461461
* more information.
462462
*/
463463
cp.timers.desired_min_tx =
@@ -839,13 +839,13 @@ static bool bfd_check_auth(const struct bfd_session *bfd,
839839
case BFD_AUTH_NULL:
840840
return false;
841841
case BFD_AUTH_SIMPLE:
842-
/* RFC5880 6.7: To be finshed. */
842+
/* RFC5880 6.7: To be finished. */
843843
return false;
844844
case BFD_AUTH_CRYPTOGRAPHIC:
845-
/* RFC5880 6.7: To be finshed. */
845+
/* RFC5880 6.7: To be finished. */
846846
return false;
847847
default:
848-
/* RFC5880 6.7: To be finshed. */
848+
/* RFC5880 6.7: To be finished. */
849849
return false;
850850
}
851851
}
@@ -1126,7 +1126,7 @@ void bfd_recv_cb(struct event *t)
11261126
/*
11271127
* Detection timeout calculation:
11281128
* The minimum detection timeout is the remote detection
1129-
* multipler (number of packets to be missed) times the agreed
1129+
* multiplier (number of packets to be missed) times the agreed
11301130
* transmission interval.
11311131
*
11321132
* RFC 5880, Section 6.8.4.
@@ -1160,7 +1160,7 @@ void bfd_recv_cb(struct event *t)
11601160
}
11611161

11621162
/*
1163-
* bp_bfd_echo_in: proccesses an BFD echo packet. On TTL == BFD_TTL_VAL
1163+
* bp_bfd_echo_in: processes an BFD echo packet. On TTL == BFD_TTL_VAL
11641164
* the packet is looped back or returns the my discriminator ID along
11651165
* with the TTL.
11661166
*
@@ -2050,7 +2050,7 @@ void ptm_sbfd_initiator_snd(struct bfd_session *bfd, int fbit)
20502050
/*
20512051
* We can only announce current setting on poll, this
20522052
* avoids timing mismatch with our peer and give it
2053-
* the oportunity to learn. See `bs_final_handler` for
2053+
* the opportunity to learn. See `bs_final_handler` for
20542054
* more information.
20552055
*/
20562056
cp.timers.desired_min_tx = htonl(bfd->cur_timers.desired_min_tx);

bfdd/bfdd_cli.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ DEFPY_YANG(
225225

226226
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
227227

228-
/* Apply settings immediatly. */
228+
/* Apply settings immediately. */
229229
return nb_cli_apply_changes(vty, NULL);
230230
}
231231

@@ -341,7 +341,7 @@ DEFPY_YANG(
341341

342342
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
343343

344-
/* Apply settings immediatly. */
344+
/* Apply settings immediately. */
345345
return nb_cli_apply_changes(vty, NULL);
346346
}
347347

@@ -478,7 +478,7 @@ DEFPY_YANG(
478478

479479
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
480480

481-
/* Apply settings immediatly. */
481+
/* Apply settings immediately. */
482482
return nb_cli_apply_changes(vty, NULL);
483483
}
484484

@@ -593,7 +593,7 @@ DEFPY_YANG(
593593

594594
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);
595595

596-
/* Apply settings immediatly. */
596+
/* Apply settings immediately. */
597597
return nb_cli_apply_changes(vty, NULL);
598598
}
599599

bfdd/bfdd_nb_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static int bfd_session_create(struct nb_cb_create_args *args, bool mhop, uint32_
339339
case NB_EV_APPLY:
340340
bs = args->resource->ptr;
341341

342-
/* Only attempt to registrate if freshly allocated. */
342+
/* Only attempt to register if freshly allocated. */
343343
if (bs->discrs.my_discr == 0 && bs_registrate(bs) == NULL)
344344
return NB_ERR_RESOURCE;
345345

doc/manpages/vtysh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ OPTIONS available for the vtysh command:
5151

5252
.. option:: -n, --noerror
5353

54-
When executing cli that does not invoke a vtysh shell, if an error ocurrs ignore it for purposes of return codes from vtysh.
54+
When executing cli that does not invoke a vtysh shell, if an error occurs ignore it for purposes of return codes from vtysh.
5555

5656
.. option:: -H, --histfile
5757

lib/event.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ static inline void thread_process_io_inner_loop(struct event_loop *m,
23112311
* m->handler.pfds while we were asleep is the .events
23122312
* field in a given pollfd. Barring event_cancel() that
23132313
* value should be a superset of the values we have in our
2314-
* copy, so there's no need to update it. Similarily,
2314+
* copy, so there's no need to update it. Similarly,
23152315
* barring deletion, the fd should still be a valid index
23162316
* into the master's pfds.
23172317
*
@@ -2573,7 +2573,7 @@ unsigned long event_consumed_time(RUSAGE_T *now, RUSAGE_T *start,
25732573
/*
25742574
* FreeBSD appears to have an issue when calling clock_gettime
25752575
* with CLOCK_THREAD_CPUTIME_ID really close to each other
2576-
* occassionally the now time will be before the start time.
2576+
* occasionally the now time will be before the start time.
25772577
* This is not good and FRR is ending up with CPU HOG's
25782578
* when the subtraction wraps to very large numbers
25792579
*

lib/log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,11 @@ void zlog_hexdump(const void *mem, size_t len)
667667

668668
/*
669669
* There are historical reasons why time since the epoch is 32
670-
* bit. Since we need the backwards compatabilty, let's convert
670+
* bit. Since we need the backwards compatibility, let's convert
671671
* the time since the epoch(a time_t value ) to a uint32_t
672672
* We know that this is going to eventually never work right
673673
* but there is not much we can do since we cannot go
674-
* backwards(HA!) to fix poorly choosen data types
674+
* backwards(HA!) to fix poorly chosen data types
675675
*/
676676
uint32_t frr_time_t_to_uint32_t(time_t value)
677677
{

lib/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* Zebra logging funcions.
3+
* Zebra logging functions.
44
* Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
55
*/
66

lib/log_nb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static int logging_daemon_file_create(struct nb_cb_create_args *args)
381381
const char *daemon, *fname;
382382
int level;
383383

384-
/* XXX Revist this and how it interacts with log file */
384+
/* XXX Revisit this and how it interacts with log file */
385385

386386
if (args->event != NB_EV_APPLY)
387387
return NB_OK;
@@ -405,7 +405,7 @@ static int logging_daemon_file_destroy(struct nb_cb_destroy_args *args)
405405
{
406406
const char *daemon;
407407

408-
/* XXX Revist this and how it interacts with log file */
408+
/* XXX Revisit this and how it interacts with log file */
409409
/* Probably need to restore the /frr-logging:logging/file config */
410410

411411
if (args->event != NB_EV_APPLY)
@@ -429,7 +429,7 @@ static int logging_daemon_file_filename_modify(struct nb_cb_modify_args *args)
429429
if (args->event != NB_EV_APPLY)
430430
return NB_OK;
431431

432-
/* XXX Revist this and how it interacts with log file */
432+
/* XXX Revisit this and how it interacts with log file */
433433

434434
daemon = yang_dnode_get_string(args->dnode, "../daemon");
435435
if (!strmatch(daemon, frr_get_progname()))
@@ -447,7 +447,7 @@ static int logging_daemon_file_level_modify(struct nb_cb_modify_args *args)
447447
const char *daemon, *fname;
448448
int level;
449449

450-
/* XXX Revist this and how it interacts with log file */
450+
/* XXX Revisit this and how it interacts with log file */
451451

452452
if (args->event != NB_EV_APPLY)
453453
return NB_OK;

0 commit comments

Comments
 (0)