diff options
author | 2013-06-04 02:34:48 +0000 | |
---|---|---|
committer | 2013-06-04 02:34:48 +0000 | |
commit | 699b7d06c4c43fc31e802807ce75d0a15945e2a0 (patch) | |
tree | 1c2d19fcbb1487e5adb4a032af0d4120f99f59c4 /usr.sbin/ldpd/labelmapping.c | |
parent | Tiny typo. "Just commit" -- claudio@ (diff) | |
download | wireguard-openbsd-699b7d06c4c43fc31e802807ce75d0a15945e2a0.tar.xz wireguard-openbsd-699b7d06c4c43fc31e802807ce75d0a15945e2a0.zip |
Always accept TCP connection requests and identify to which neighbor
it belongs only _after_ receiving an Initialization message containing
the information we need. Before an Initialization message is received,
the TCP connection shouldn't be associated with any neighbor/adjacency.
Therefor refactor that part into a own module.
From Renato Westphal
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r-- | usr.sbin/ldpd/labelmapping.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c index f4fd3566f25..2ed93570578 100644 --- a/usr.sbin/ldpd/labelmapping.c +++ b/usr.sbin/ldpd/labelmapping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: labelmapping.c,v 1.23 2013/06/01 19:42:07 claudio Exp $ */ +/* $OpenBSD: labelmapping.c,v 1.24 2013/06/04 02:34:48 claudio Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -83,7 +83,7 @@ send_labelmapping(struct nbr *nbr) ldp_hdr = ibuf_seek(buf, 0, sizeof(struct ldp_hdr)); ldp_hdr->length = htons(size); - evbuf_enqueue(&nbr->wbuf, buf); + evbuf_enqueue(&nbr->tcp->wbuf, buf); nbr_fsm(nbr, NBR_EVT_PDU_SENT); } @@ -184,7 +184,7 @@ send_labelrequest(struct nbr *nbr) ldp_hdr = ibuf_seek(buf, 0, sizeof(struct ldp_hdr)); ldp_hdr->length = htons(size); - evbuf_enqueue(&nbr->wbuf, buf); + evbuf_enqueue(&nbr->tcp->wbuf, buf); nbr_fsm(nbr, NBR_EVT_PDU_SENT); } @@ -281,7 +281,7 @@ send_labelwithdraw(struct nbr *nbr) ldp_hdr = ibuf_seek(buf, 0, sizeof(struct ldp_hdr)); ldp_hdr->length = htons(size); - evbuf_enqueue(&nbr->wbuf, buf); + evbuf_enqueue(&nbr->tcp->wbuf, buf); nbr_fsm(nbr, NBR_EVT_PDU_SENT); } @@ -414,7 +414,7 @@ send_labelrelease(struct nbr *nbr) ldp_hdr = ibuf_seek(buf, 0, sizeof(struct ldp_hdr)); ldp_hdr->length = htons(size); - evbuf_enqueue(&nbr->wbuf, buf); + evbuf_enqueue(&nbr->tcp->wbuf, buf); nbr_fsm(nbr, NBR_EVT_PDU_SENT); } @@ -525,7 +525,7 @@ send_labelabortreq(struct nbr *nbr) gen_msg_tlv(buf, MSG_TYPE_LABELABORTREQ, size); - evbuf_enqueue(&nbr->wbuf, buf); + evbuf_enqueue(&nbr->tcp->wbuf, buf); nbr_fsm(nbr, NBR_EVT_PDU_SENT); } |