summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.c
diff options
context:
space:
mode:
authorgdt <gdt>2004-12-09 14:46:46 +0000
committergdt <gdt>2004-12-09 14:46:46 +0000
commitf4d91f11a04e47cdfdfa60c60e01b8607d9e482d (patch)
tree0762b963dae3a59fc5ea0b02435ac873f9322de2 /bgpd/bgp_attr.c
parent147b17ddfdc0bb3813061c1a16ae7c78f7ce3c7c (diff)
downloadquagga-f4d91f11a04e47cdfdfa60c60e01b8607d9e482d.tar.bz2
quagga-f4d91f11a04e47cdfdfa60c60e01b8607d9e482d.tar.xz
Add comments with warnings obtained on NetBSD/i386. Both are due to
size_t being used for streams. Perhaps cast to unsigned long before printf? Surely that's big enough even if size_t could be larger in theory. (no changelog, since only comment changes)
Diffstat (limited to 'bgpd/bgp_attr.c')
-rw-r--r--bgpd/bgp_attr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 44c85850..8ffcfdd0 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -1166,6 +1166,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
/* Check remaining length check.*/
if (endp - BGP_INPUT_PNT (peer) < BGP_ATTR_MIN_LEN)
{
+ /* XXX warning: long int format, int arg (arg 5) */
zlog (peer->log, LOG_WARNING,
"%s error BGP attribute length %ld is smaller than min len",
peer->host, endp - STREAM_PNT (BGP_INPUT (peer)));