summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2013-10-15 20:27:40 +0000
committerrenato <renato@openbsd.org>2013-10-15 20:27:40 +0000
commit23695a608124520362d88d534f5552cc4aa58ce4 (patch)
treeb460e28b1439f1d04881d752c9d79b3e11fe6168 /usr.sbin/ldpd/labelmapping.c
parentIf the fake target of a port installed an empty (0-byte) file as a (diff)
downloadwireguard-openbsd-23695a608124520362d88d534f5552cc4aa58ce4.tar.xz
wireguard-openbsd-23695a608124520362d88d534f5552cc4aa58ce4.zip
Generate the NBR_EVT_PDU_RCVD event in a single point.
OK claudio@
Diffstat (limited to 'usr.sbin/ldpd/labelmapping.c')
-rw-r--r--usr.sbin/ldpd/labelmapping.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/ldpd/labelmapping.c b/usr.sbin/ldpd/labelmapping.c
index c69e123d658..170a1092b90 100644
--- a/usr.sbin/ldpd/labelmapping.c
+++ b/usr.sbin/ldpd/labelmapping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: labelmapping.c,v 1.25 2013/10/15 19:59:53 renato Exp $ */
+/* $OpenBSD: labelmapping.c,v 1.26 2013/10/15 20:27:40 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -150,8 +150,6 @@ recv_labelmapping(struct nbr *nbr, char *buf, u_int16_t len)
feclen -= tlen;
} while (feclen > 0);
- nbr_fsm(nbr, NBR_EVT_PDU_RCVD);
-
return (ntohs(lm.length));
}
@@ -244,8 +242,6 @@ recv_labelrequest(struct nbr *nbr, char *buf, u_int16_t len)
feclen -= tlen;
} while (feclen > 0);
- nbr_fsm(nbr, NBR_EVT_PDU_RCVD);
-
return (ntohs(lr.length));
}
@@ -380,8 +376,6 @@ recv_labelwithdraw(struct nbr *nbr, char *buf, u_int16_t len)
feclen -= tlen;
} while (feclen > 0);
- nbr_fsm(nbr, NBR_EVT_PDU_RCVD);
-
return (ntohs(lw.length));
}
@@ -515,8 +509,6 @@ recv_labelrelease(struct nbr *nbr, char *buf, u_int16_t len)
feclen -= tlen;
} while (feclen > 0);
- nbr_fsm(nbr, NBR_EVT_PDU_RCVD);
-
return (ntohs(lr.length));
}
@@ -611,8 +603,6 @@ recv_labelabortreq(struct nbr *nbr, char *buf, u_int16_t len)
feclen -= tlen;
} while (feclen > 0);
- nbr_fsm(nbr, NBR_EVT_PDU_RCVD);
-
return (ntohs(la.length));
}