1 May 2007 13:25
tcpdump/print-bgp.c: additional TCHECKs etc.
Stuart Henderson <stu <at> spacehopper.org>
2007-05-01 11:25:20 GMT
2007-05-01 11:25:20 GMT
I am doing work on print-bgp.c, pulling in some of the more useful
changes from tcpdump.org, bringing the display format of communities
into the century of the fruitbat, and adding 4-byte ASN support.
Much of it is working already but I have split up the changes
into more manageable chunks.
Here is the first part, mostly a tidyup:
- additional truncation checks from tcpdump.org
- remove unused hlen (found by lint)
- remove comparison uint < 0 in decode_prefix4 (found by lint)
- note that BGPTYPE_DPA has a published draft
Index: print-bgp.c
===================================================================
RCS file: /cvs/src/usr.sbin/tcpdump/print-bgp.c,v
retrieving revision 1.7
diff -u -p -r1.7 print-bgp.c
--- print-bgp.c 28 Mar 2006 15:48:34 -0000 1.7
+++ print-bgp.c 1 May 2007 10:52:16 -0000
<at> <at> -117,12 +117,13 <at> <at> struct bgp_attr {
#define BGPTYPE_COMMUNITIES 8 /* RFC1997 */
#define BGPTYPE_ORIGINATOR_ID 9 /* RFC1998 */
#define BGPTYPE_CLUSTER_LIST 10 /* RFC1998 */
-#define BGPTYPE_DPA 11 /* work in progress */
+#define BGPTYPE_DPA 11 /* draft-ietf-idr-bgp-dpa */
#define BGPTYPE_ADVERTISERS 12 /* RFC1863 */
#define BGPTYPE_RCID_PATH 13 /* RFC1863 */
#define BGPTYPE_MP_REACH_NLRI 14 /* RFC2283 */
(Continue reading)
RSS Feed