};
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;
}
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)
{
}
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;
}
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;
}
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;
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;
}
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;
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--;
* 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;
rta *a = NULL;
ip_addr prefix;
net *n;
- rte e;
int err = 0, pxlen;
/* Withdraw routes */
}
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;
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);
}
}