summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/mrtparser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2019-06-17 13:46:33 +0000
committerclaudio <claudio@openbsd.org>2019-06-17 13:46:33 +0000
commitc602e29afdfb22fdfcfb317b7f084ce6a24e9ccf (patch)
treec8ce6351d9fbf4d409755b9d1b926befef5d2ecc /usr.sbin/bgpctl/mrtparser.c
parentCleanup, remove some unneded spaces add some other where needed. (diff)
downloadwireguard-openbsd-c602e29afdfb22fdfcfb317b7f084ce6a24e9ccf.tar.xz
wireguard-openbsd-c602e29afdfb22fdfcfb317b7f084ce6a24e9ccf.zip
Cleanup some spaces here as well. Again no binary change.
Diffstat (limited to 'usr.sbin/bgpctl/mrtparser.c')
-rw-r--r--usr.sbin/bgpctl/mrtparser.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/bgpctl/mrtparser.c b/usr.sbin/bgpctl/mrtparser.c
index 4a930a5e5db..fa933125663 100644
--- a/usr.sbin/bgpctl/mrtparser.c
+++ b/usr.sbin/bgpctl/mrtparser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrtparser.c,v 1.10 2019/02/25 11:51:58 claudio Exp $ */
+/* $OpenBSD: mrtparser.c,v 1.11 2019/06/17 13:46:33 claudio Exp $ */
/*
* Copyright (c) 2011 Claudio Jeker <claudio@openbsd.org>
*
@@ -466,7 +466,7 @@ mrt_parse_dump(struct mrt_hdr *hdr, void *msg, struct mrt_peer **pp,
err(1, "calloc");
r->nentries = 1;
r->entries = re;
-
+
if (len < 2 * sizeof(u_int16_t))
goto fail;
/* view */
@@ -580,7 +580,7 @@ mrt_parse_dump_mp(struct mrt_hdr *hdr, void *msg, struct mrt_peer **pp,
err(1, "calloc");
r->nentries = 1;
r->entries = re;
-
+
if (len < 4 * sizeof(u_int16_t))
goto fail;
/* source AS */
@@ -627,7 +627,7 @@ mrt_parse_dump_mp(struct mrt_hdr *hdr, void *msg, struct mrt_peer **pp,
len -= sizeof(struct in6_addr);
break;
}
-
+
if (len < 2 * sizeof(u_int16_t) + 2 * sizeof(u_int32_t))
goto fail;
/* view + status */
@@ -644,7 +644,7 @@ mrt_parse_dump_mp(struct mrt_hdr *hdr, void *msg, struct mrt_peer **pp,
b += sizeof(afi);
len -= sizeof(afi);
afi = ntohs(afi);
-
+
/* safi */
safi = *b++;
len -= 1;
@@ -755,7 +755,7 @@ mrt_extract_attr(struct mrt_rib_entry *re, u_char *a, int alen, u_int8_t aid,
alen -= 1;
type = *a++;
alen -= 1;
-
+
if (flags & MRT_ATTR_EXTLEN) {
if (alen < 2)
return (-1);
@@ -1006,7 +1006,7 @@ mrt_parse_state(struct mrt_hdr *hdr, void *msg)
u_int16_t tmp16, afi;
int r;
u_int8_t aid;
-
+
t.tv_sec = ntohl(hdr->timestamp);
t.tv_nsec = 0;
@@ -1122,7 +1122,7 @@ mrt_parse_msg(struct mrt_hdr *hdr, void *msg)
u_int16_t tmp16, afi;
int r;
u_int8_t aid;
-
+
t.tv_sec = ntohl(hdr->timestamp);
t.tv_nsec = 0;