]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Synced to draft-ietf-idr-bgp4-09.
authorMartin Mares <mj@ucw.cz>
Thu, 20 Apr 2000 22:54:22 +0000 (22:54 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 20 Apr 2000 22:54:22 +0000 (22:54 +0000)
proto/bgp/attrs.c
proto/bgp/config.Y
proto/bgp/packets.c

index f008b3508d58bc651bec8cf998795cf25584eecb..fa2649c5dee17d4c66fdffd824c2b6f487b19855 100644 (file)
@@ -6,6 +6,9 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
+/* FIXME: Latest draft says that LOCAL_PREF is mandatory for iBGP */
+/* FIXME: Mandatory attributes may be missing in messages that don't contain NLRI */
+
 #define LOCAL_DEBUG
 
 #include <stdlib.h>
index 548f5d039370bdbbec9c5191870f44548766e281..37f90aafc00824af8ee03302820f4f11b73ed082 100644 (file)
@@ -29,7 +29,7 @@ bgp_proto_start: proto_start BGP {
      BGP_CFG->hold_time = 240;
      BGP_CFG->connect_retry_time = 120;
      BGP_CFG->initial_hold_time = 240;
-     BGP_CFG->default_med = ~0;
+     BGP_CFG->default_med = ~0;                /* RFC 1771 doesn't specify this, draft-09 says ~0 */
      BGP_CFG->compare_path_lengths = 1;
   }
  ;
index 91d05083da4f93892dbcd65a6cd12e2d7311a344..bec2e5014ff2ba764718968eec71485e2df6c8c6 100644 (file)
@@ -216,7 +216,7 @@ bgp_rx_open(struct bgp_conn *conn, byte *pkt, int len)
   if (len < 29 || len != 29 + pkt[28])
     { bgp_error(conn, 1, 2, len, 2); return; }
   if (pkt[19] != BGP_VERSION)
-    { bgp_error(conn, 2, 1, pkt[19], 2); return; }
+    { bgp_error(conn, 2, 1, pkt[19], 1); return; } /* RFC 1771 says 16 bits, draft-09 tells to use 8 */
   as = get_u16(pkt+20);
   hold = get_u16(pkt+22);
   id = get_u32(pkt+24);