@@ -1533,7 +1533,7 @@ void bgp_attr_unintern_sub(struct attr *attr)
15331533 struct bgp_route_evpn * bre ;
15341534 struct bgp_nhc * nhc ;
15351535
1536- /* aspath refcount shoud be decrement. */
1536+ /* aspath refcount should be decrement. */
15371537 aspath_unintern (& attr -> aspath );
15381538 bgp_attr_unset (attr , BGP_ATTR_AS_PATH );
15391539
@@ -1712,7 +1712,7 @@ bgp_attr_malformed(struct bgp_attr_parser_args *args, uint8_t subcode,
17121712 const uint8_t flags = args -> flags ;
17131713 /* startp and length must be special-cased, as whether or not to
17141714 * send the attribute data with the NOTIFY depends on the error,
1715- * the caller therefore signals this with the seperate length argument
1715+ * the caller therefore signals this with the separate length argument
17161716 */
17171717 uint8_t * notify_datap = (length > 0 ? args -> startp : NULL );
17181718
@@ -2198,7 +2198,7 @@ bgp_attr_nexthop(struct bgp_attr_parser_args *args)
21982198 return BGP_ATTR_PARSE_PROCEED ;
21992199}
22002200
2201- /* MED atrribute . */
2201+ /* MED attribute . */
22022202static enum bgp_attr_parse_ret bgp_attr_med (struct bgp_attr_parser_args * args )
22032203{
22042204 struct peer_connection * const connection = args -> connection ;
@@ -3020,7 +3020,7 @@ bgp_attr_ext_communities(struct bgp_attr_parser_args *args)
30203020
30213021 /* Handle scenario where router flag ecommunity is not
30223022 * set but default gw ext community is present.
3023- * Use default gateway, set and propogate R-bit.
3023+ * Use default gateway, set and propagate R-bit.
30243024 */
30253025 if (CHECK_FLAG (attr -> evpn_flags , ATTR_EVPN_FLAG_DEFAULT_GW ))
30263026 SET_FLAG (attr -> evpn_flags , ATTR_EVPN_FLAG_ROUTER );
@@ -3253,7 +3253,7 @@ bgp_attr_srv6_service_data(struct bgp_attr_parser_args *args)
32533253
32543254 if (STREAM_READABLE (connection -> curr ) < headersz ) {
32553255 flog_err (EC_BGP_ATTR_LEN ,
3256- "Malformed SRv6 Service Data Sub-Sub-TLV attribute - insufficent data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
3256+ "Malformed SRv6 Service Data Sub-Sub-TLV attribute - insufficient data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
32573257 headersz , STREAM_READABLE (connection -> curr ));
32583258 return bgp_attr_malformed (args , BGP_NOTIFY_UPDATE_ATTR_LENG_ERR ,
32593259 args -> total );
@@ -3264,7 +3264,7 @@ bgp_attr_srv6_service_data(struct bgp_attr_parser_args *args)
32643264
32653265 if (STREAM_READABLE (connection -> curr ) < length ) {
32663266 flog_err (EC_BGP_ATTR_LEN ,
3267- "Malformed SRv6 Service Data Sub-Sub-TLV attribute - insufficent data (need %hu for attribute data, have %zu remaining in UPDATE)" ,
3267+ "Malformed SRv6 Service Data Sub-Sub-TLV attribute - insufficient data (need %hu for attribute data, have %zu remaining in UPDATE)" ,
32683268 length , STREAM_READABLE (connection -> curr ));
32693269 return bgp_attr_malformed (args , BGP_NOTIFY_UPDATE_ATTR_LENG_ERR ,
32703270 args -> total );
@@ -3347,7 +3347,7 @@ bgp_attr_srv6_service(struct bgp_attr_parser_args *args)
33473347
33483348 if (STREAM_READABLE (connection -> curr ) < headersz ) {
33493349 flog_err (EC_BGP_ATTR_LEN ,
3350- "Malformed SRv6 Service Sub-TLV attribute - insufficent data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
3350+ "Malformed SRv6 Service Sub-TLV attribute - insufficient data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
33513351 headersz , STREAM_READABLE (connection -> curr ));
33523352 return bgp_attr_malformed (args , BGP_NOTIFY_UPDATE_ATTR_LENG_ERR ,
33533353 args -> total );
@@ -3358,7 +3358,7 @@ bgp_attr_srv6_service(struct bgp_attr_parser_args *args)
33583358
33593359 if (STREAM_READABLE (connection -> curr ) < length ) {
33603360 flog_err (EC_BGP_ATTR_LEN ,
3361- "Malformed SRv6 Service Sub-TLV attribute - insufficent data (need %hu for attribute data, have %zu remaining in UPDATE)" ,
3361+ "Malformed SRv6 Service Sub-TLV attribute - insufficient data (need %hu for attribute data, have %zu remaining in UPDATE)" ,
33623362 length , STREAM_READABLE (connection -> curr ));
33633363 return bgp_attr_malformed (args , BGP_NOTIFY_UPDATE_ATTR_LENG_ERR ,
33643364 args -> total );
@@ -3368,7 +3368,7 @@ bgp_attr_srv6_service(struct bgp_attr_parser_args *args)
33683368 if (STREAM_READABLE (connection -> curr ) <
33693369 BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_INFO_LENGTH ) {
33703370 flog_err (EC_BGP_ATTR_LEN ,
3371- "Malformed SRv6 Service Sub-TLV attribute - insufficent data (need %d for attribute data, have %zu remaining in UPDATE)" ,
3371+ "Malformed SRv6 Service Sub-TLV attribute - insufficient data (need %d for attribute data, have %zu remaining in UPDATE)" ,
33723372 BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_INFO_LENGTH ,
33733373 STREAM_READABLE (connection -> curr ));
33743374 return bgp_attr_malformed (
@@ -3633,7 +3633,7 @@ enum bgp_attr_parse_ret bgp_attr_prefix_sid(struct bgp_attr_parser_args *args)
36333633 while (STREAM_READABLE (connection -> curr ) > 0 && psid_parsed_length < args -> length ) {
36343634 if (STREAM_READABLE (connection -> curr ) < headersz ) {
36353635 flog_err (EC_BGP_ATTR_LEN ,
3636- "Malformed Prefix SID attribute - insufficent data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
3636+ "Malformed Prefix SID attribute - insufficient data (need %zu for attribute header, have %zu remaining in UPDATE)" ,
36373637 headersz , STREAM_READABLE (connection -> curr ));
36383638 return bgp_attr_malformed (
36393639 args , BGP_NOTIFY_UPDATE_ATTR_LENG_ERR ,
@@ -4185,7 +4185,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
41854185 goto done ;
41864186 }
41874187
4188- /* Check extended attribue length bit. */
4188+ /* Check extended attribute length bit. */
41894189 if (CHECK_FLAG (flag , BGP_ATTR_FLAG_EXTLEN ))
41904190 length = stream_getw (BGP_INPUT (connection ));
41914191 else
@@ -4217,8 +4217,8 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
42174217 /* If attribute appears more than once in the UPDATE message,
42184218 * for MP_REACH_NLRI & MP_UNREACH_NLRI attributes
42194219 * the Error Subcode is set to Malformed Attribute List.
4220- * For all other attributes, all the occurances of the attribute
4221- * other than the first occurence is discarded. (RFC7606 3g)
4220+ * For all other attributes, all the occurrences of the attribute
4221+ * other than the first occurrence is discarded. (RFC7606 3g)
42224222 */
42234223
42244224 if (CHECK_BITMAP (seen , type )) {
@@ -4484,7 +4484,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
44844484 /*
44854485 * At this stage, we have done all fiddling with as4, and the
44864486 * resulting info is in attr->aggregator resp. attr->aspath so
4487- * we can chuck as4_aggregator and as4_path alltogether in order
4487+ * we can chuck as4_aggregator and as4_path altogether in order
44884488 * to save memory
44894489 */
44904490 /*
0 commit comments