artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7856796
)
Add missing htonl() else matching does not really work.
author
claudio
<claudio@openbsd.org>
Fri, 7 Sep 2018 13:25:36 +0000
(13:25 +0000)
committer
claudio
<claudio@openbsd.org>
Fri, 7 Sep 2018 13:25:36 +0000
(13:25 +0000)
usr.sbin/bgpd/rde_trie.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rde_trie.c
b/usr.sbin/bgpd/rde_trie.c
index
781aa77
..
fb541f9
100644
(file)
--- a/
usr.sbin/bgpd/rde_trie.c
+++ b/
usr.sbin/bgpd/rde_trie.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rde_trie.c,v 1.
1 2018/09/07 10:49:22
claudio Exp $ */
+/* $OpenBSD: rde_trie.c,v 1.
2 2018/09/07 13:25:36
claudio Exp $ */
/*
* Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
@@
-134,7
+134,7
@@
static void
inet4setbit(struct in_addr *addr, u_int8_t bit)
{
/* bit 0 sets the MSB and 31 sets the LSB */
- addr->s_addr |= (1 << (31 - bit));
+ addr->s_addr |=
htonl
(1 << (31 - bit));
}
static void