summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-03-19 07:00:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-03-19 07:00:08 +0000
commita416ef2579f9f2fef5f7e79c894ef1d26960149b (patch)
tree076e6dc5e1e311d62dd556d266d95b18762c50e2 /usr.sbin/bgpd/session.c
parent7ce2d296a96fe58889baaa6681aa25aa393cc95d (diff)
First big chunk of mrt rewrite. Simplifies code hopefully and fixes table
dumps that were wrong because of the 4byte AS support. Dumps I took seemed to work so far. "Put it in" henning@
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index a1e9647bf86..fdeb2111e20 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.288 2009/03/18 19:49:31 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.289 2009/03/19 07:00:07 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -964,7 +964,7 @@ change_state(struct peer *peer, enum session_state state,
if ((mrt->peer_id == 0 && mrt->group_id == 0) ||
mrt->peer_id == peer->conf.id || (mrt->group_id != 0 &&
mrt->group_id == peer->conf.groupid))
- mrt_dump_state(mrt, peer->state, state, peer, conf);
+ mrt_dump_state(mrt, peer->state, state, peer);
}
peer->prev_state = peer->state;
peer->state = state;
@@ -1318,7 +1318,7 @@ session_sendmsg(struct bgp_msg *msg, struct peer *p)
if ((mrt->peer_id == 0 && mrt->group_id == 0) ||
mrt->peer_id == p->conf.id || (mrt->group_id == 0 &&
mrt->group_id == p->conf.groupid))
- mrt_dump_bgp_msg(mrt, msg->buf->buf, msg->len, p, conf);
+ mrt_dump_bgp_msg(mrt, msg->buf->buf, msg->len, p);
}
if (buf_close(&p->wbuf, msg->buf) == -1) {
@@ -1807,7 +1807,7 @@ parse_header(struct peer *peer, u_char *data, u_int16_t *len, u_int8_t *type)
if ((mrt->peer_id == 0 && mrt->group_id == 0) ||
mrt->peer_id == peer->conf.id || (mrt->group_id != 0 &&
mrt->group_id == peer->conf.groupid))
- mrt_dump_bgp_msg(mrt, data, *len, peer, conf);
+ mrt_dump_bgp_msg(mrt, data, *len, peer);
}
return (0);
}