summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-02-26 12:33:41 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-02-26 12:33:41 +0000
commitc3d84109d955dba2a452cdc35c22b6d2a1871a1d (patch)
treeacf8e6237e6aa69dc5fe2b115536d661b9f83da7 /usr.sbin
parent555ee9dc210c327d69b5493bee594636e70c6209 (diff)
Some betoh64 sneaked in again, change to be64toh to be posix compliant.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde_attr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c
index d1743197d24..484b0d0ba6b 100644
--- a/usr.sbin/bgpd/rde_attr.c
+++ b/usr.sbin/bgpd/rde_attr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_attr.c,v 1.119 2019/02/26 10:49:15 claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.120 2019/02/26 12:33:40 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -1552,7 +1552,7 @@ community_ext_delete(struct rde_aspath *asp, struct filter_community *c,
if (community_ext_conv(c, peer, &community, &mask))
return;
- if (mask != 0 && betoh64(mask) >> 56 == 0)
+ if (mask != 0 && be64toh(mask) >> 56 == 0)
check_type = 1;
attr = attr_optget(asp, ATTR_EXT_COMMUNITIES);
@@ -1565,7 +1565,7 @@ community_ext_delete(struct rde_aspath *asp, struct filter_community *c,
memcpy(&test, p + l, sizeof(community));
/* special handling of ext-community rt *, type is not known */
if (check_type) {
- u_int8_t type = betoh64(test) >> 56;
+ u_int8_t type = be64toh(test) >> 56;
if (type != EXT_COMMUNITY_TRANS_TWO_AS &&
type != EXT_COMMUNITY_TRANS_FOUR_AS &&
type != EXT_COMMUNITY_TRANS_IPV4) {
@@ -1594,7 +1594,7 @@ community_ext_delete(struct rde_aspath *asp, struct filter_community *c,
memcpy(&test, p, sizeof(community));
/* special handling of ext-community rt *, type is not known */
if (check_type) {
- u_int8_t type = betoh64(test) >> 56;
+ u_int8_t type = be64toh(test) >> 56;
if (type != EXT_COMMUNITY_TRANS_TWO_AS &&
type != EXT_COMMUNITY_TRANS_FOUR_AS &&
type != EXT_COMMUNITY_TRANS_IPV4) {