]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
... in BGP.
authorMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:27:17 +0000 (09:27 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:27:17 +0000 (09:27 +0000)
proto/bgp/attrs.c
proto/bgp/bgp.c
proto/bgp/packets.c

index 7fb817a49c6431165dbe00911d091691b70e5b38..3cb99e008abfc95b77d3765f0ad9c9d6f4e9365a 100644 (file)
@@ -39,7 +39,7 @@ struct attr_desc {
 };
 
 static int
-bgp_check_origin(struct bgp_proto *p, byte *a, int len)
+bgp_check_origin(struct bgp_proto *p UNUSED, byte *a UNUSED, int len)
 {
   if (len > 2)
     return 6;
@@ -55,7 +55,7 @@ bgp_format_origin(eattr *a, byte *buf)
 }
 
 static int
-bgp_check_path(struct bgp_proto *p, byte *a, int len)
+bgp_check_path(struct bgp_proto *p UNUSED, byte *a, int len)
 {
   while (len)
     {
@@ -71,7 +71,7 @@ bgp_check_path(struct bgp_proto *p, byte *a, int len)
 }
 
 static int
-bgp_check_next_hop(struct bgp_proto *p, byte *a, int len)
+bgp_check_next_hop(struct bgp_proto *p UNUSED, byte *a, int len)
 {
 #ifdef IPV6
   return -1;
@@ -88,7 +88,7 @@ bgp_check_next_hop(struct bgp_proto *p, byte *a, int len)
 }
 
 static int
-bgp_check_reach_nlri(struct bgp_proto *p, byte *a, int len)
+bgp_check_reach_nlri(struct bgp_proto *p UNUSED, byte *a UNUSED, int len UNUSED)
 {
 #ifdef IPV6
   p->mp_reach_start = a;
@@ -98,7 +98,7 @@ bgp_check_reach_nlri(struct bgp_proto *p, byte *a, int len)
 }
 
 static int
-bgp_check_unreach_nlri(struct bgp_proto *p, byte *a, int len)
+bgp_check_unreach_nlri(struct bgp_proto *p UNUSED, byte *a UNUSED, int len UNUSED)
 {
 #ifdef IPV6
   p->mp_unreach_start = a;
@@ -415,7 +415,7 @@ bgp_export_check(struct bgp_proto *p, ea_list *new)
 static struct bgp_bucket *
 bgp_get_bucket(struct bgp_proto *p, ea_list *attrs, int originate)
 {
-  ea_list *t, *new;
+  ea_list *new;
   unsigned i, cnt, hash, code;
   eattr *a, *d;
   u32 seen = 0;
@@ -515,7 +515,7 @@ bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck)
 }
 
 void
-bgp_rt_notify(struct proto *P, net *n, rte *new, rte *old, ea_list *attrs)
+bgp_rt_notify(struct proto *P, net *n, rte *new, rte *old UNUSED, ea_list *attrs)
 {
   struct bgp_proto *p = (struct bgp_proto *) P;
   struct bgp_bucket *buck;
index b8e2abbca210b9fbd7d6329d9cb511f89443b85d..9258d149f4d28658939fb429afaca6d1d9f8bc82 100644 (file)
@@ -77,7 +77,7 @@ static void bgp_initiate(struct bgp_proto *p);
 static void bgp_setup_listen_sk(void);
 
 void
-bgp_close(struct bgp_proto *p)
+bgp_close(struct bgp_proto *p UNUSED)
 {
   ASSERT(bgp_counter);
   bgp_counter--;
@@ -370,7 +370,7 @@ bgp_initiate(struct bgp_proto *p)
  * closes the new connection by sending a Notification message.
  */
 static int
-bgp_incoming_connection(sock *sk, int dummy)
+bgp_incoming_connection(sock *sk, int dummy UNUSED)
 {
   struct proto_config *pc;
   int match = 0;
index 39e83b54eb6b42953821b1976c0fdfc7a851427e..2e6f0b6062f2b00869e666d4771f57cd4f53c0b6 100644 (file)
@@ -524,7 +524,6 @@ bgp_do_rx_update(struct bgp_conn *conn,
   rta *a = NULL;
   ip_addr prefix;
   net *n;
-  rte e;
   int err = 0, pxlen;
 
   /* Withdraw routes */
@@ -787,7 +786,7 @@ bgp_rx_notification(struct bgp_conn *conn, byte *pkt, int len)
 }
 
 static void
-bgp_rx_keepalive(struct bgp_conn *conn, byte *pkt, unsigned len)
+bgp_rx_keepalive(struct bgp_conn *conn)
 {
   struct bgp_proto *p = conn->bgp;
 
@@ -826,7 +825,7 @@ bgp_rx_packet(struct bgp_conn *conn, byte *pkt, unsigned len)
     case PKT_OPEN:             return bgp_rx_open(conn, pkt, len);
     case PKT_UPDATE:           return bgp_rx_update(conn, pkt, len);
     case PKT_NOTIFICATION:      return bgp_rx_notification(conn, pkt, len);
-    case PKT_KEEPALIVE:                return bgp_rx_keepalive(conn, pkt, len);
+    case PKT_KEEPALIVE:                return bgp_rx_keepalive(conn);
     default:                   bgp_error(conn, 1, 3, pkt+18, 1);
     }
 }