diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2014-06-04 01:01:00 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2014-06-29 12:47:21 +0200 |
commit | bb02b82354a80f74706efc5e4c914b3f89fb033e (patch) | |
tree | d7662f309686113478121b54859e048f44ee6ac2 | |
parent | f80f838b2f54738937ef1281b237710132195c44 (diff) | |
download | quagga-bb02b82354a80f74706efc5e4c914b3f89fb033e.tar.bz2 quagga-bb02b82354a80f74706efc5e4c914b3f89fb033e.tar.xz |
bgpd: fix IP endianness in debug message
inet_ntop expects network byte order.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | bgpd/bgp_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index a1fd1654..f9fde9f0 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -1110,7 +1110,7 @@ bgp_attr_nexthop (struct bgp_attr_parser_args *args) if (IPV4_NET0 (nexthop_h) || IPV4_NET127 (nexthop_h) || IPV4_CLASS_DE (nexthop_h)) { char buf[INET_ADDRSTRLEN]; - inet_ntop (AF_INET, &nexthop_h, buf, INET_ADDRSTRLEN); + inet_ntop (AF_INET, &nexthop_n, buf, INET_ADDRSTRLEN); zlog (peer->log, LOG_ERR, "Martian nexthop %s", buf); return bgp_attr_malformed (args, BGP_NOTIFY_UPDATE_INVAL_NEXT_HOP, |