mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
ospf6d: apply CI style suggestions
Apply formatting changes suggested by CI frrbot. Signed-off-by: Andrew Cooks <acooks.at.bda@gmail.com>
This commit is contained in:
parent
9eef5e6483
commit
b2526ddc3f
@ -65,7 +65,8 @@ static int ospf6_gr_lsa_originate(struct ospf6_interface *oi,
|
|||||||
|
|
||||||
/* Put restart reason. */
|
/* Put restart reason. */
|
||||||
grace_lsa->tlv_reason.header.type = htons(TLV_GRACE_RESTART_REASON_TYPE);
|
grace_lsa->tlv_reason.header.type = htons(TLV_GRACE_RESTART_REASON_TYPE);
|
||||||
grace_lsa->tlv_reason.header.length = htons(TLV_GRACE_RESTART_REASON_LENGTH);
|
grace_lsa->tlv_reason.header.length =
|
||||||
|
htons(TLV_GRACE_RESTART_REASON_LENGTH);
|
||||||
grace_lsa->tlv_reason.reason = reason;
|
grace_lsa->tlv_reason.reason = reason;
|
||||||
|
|
||||||
/* Fill LSA Header */
|
/* Fill LSA Header */
|
||||||
|
@ -147,7 +147,6 @@ static int ospf6_extract_grace_lsa_fields(struct ospf6_lsa *lsa,
|
|||||||
|
|
||||||
for (tlvh = lsdesc_start(lsah); sum < length && tlvh;
|
for (tlvh = lsdesc_start(lsah); sum < length && tlvh;
|
||||||
tlvh = TLV_HDR_NEXT(tlvh)) {
|
tlvh = TLV_HDR_NEXT(tlvh)) {
|
||||||
|
|
||||||
/* Check TLV len against overall LSA */
|
/* Check TLV len against overall LSA */
|
||||||
if (sum + TLV_SIZE(tlvh) > length) {
|
if (sum + TLV_SIZE(tlvh) > length) {
|
||||||
if (IS_DEBUG_OSPF6_GR)
|
if (IS_DEBUG_OSPF6_GR)
|
||||||
@ -1243,7 +1242,6 @@ static int ospf6_grace_lsa_show_info(struct vty *vty, struct ospf6_lsa *lsa,
|
|||||||
|
|
||||||
for (tlvh = lsdesc_start(lsah); sum < length && tlvh;
|
for (tlvh = lsdesc_start(lsah); sum < length && tlvh;
|
||||||
tlvh = TLV_HDR_NEXT(tlvh)) {
|
tlvh = TLV_HDR_NEXT(tlvh)) {
|
||||||
|
|
||||||
/* Check TLV len */
|
/* Check TLV len */
|
||||||
if (sum + TLV_SIZE(tlvh) > length) {
|
if (sum + TLV_SIZE(tlvh) > length) {
|
||||||
if (vty)
|
if (vty)
|
||||||
|
@ -592,8 +592,6 @@ static char *ospf6_link_lsa_get_prefix_str(struct ospf6_lsa *lsa, char *buf,
|
|||||||
inet_ntop(AF_INET6, &in6, buf, buflen);
|
inet_ntop(AF_INET6, &in6, buf, buflen);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ospf6_link_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
|
static int ospf6_link_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
|
||||||
|
@ -88,7 +88,6 @@ struct ospf6_lsa_header {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static inline char *ospf6_lsa_header_end(struct ospf6_lsa_header *header)
|
static inline char *ospf6_lsa_header_end(struct ospf6_lsa_header *header)
|
||||||
{
|
{
|
||||||
return (char *)header + sizeof(struct ospf6_lsa_header);
|
return (char *)header + sizeof(struct ospf6_lsa_header);
|
||||||
|
Loading…
Reference in New Issue
Block a user