summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-06-05 09:27:17 +0000
committerMartin Mares <mj@ucw.cz>2004-06-05 09:27:17 +0000
commite21423bab8a7cfc1cf5d13ab77ebebfae8ce156e (patch)
tree2fbb18b811552df6d4e4b69ff8498fcc67485ec4 /proto/bgp/packets.c
parentfab37e81971a08b550c6d63ff11f0bf34f0a9aa2 (diff)
... in BGP.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 39e83b54..2e6f0b60 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -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);
}
}