Lines Matching defs:pdu
398 * It's ugly. We need a function to pass all tlvs and create pdu but since I
1339 /* Sends a pdu, tlv pair to a connected peer */
1341 send_message(const struct ldp_peer * p, const struct ldp_pdu * pdu,
1356 if (ntohs(pdu->length) !=
1360 ntohs(pdu->length));
1368 memcpy(sendspace, pdu, sizeof(struct ldp_pdu));
1383 ntohs(pdu->length) + PDU_VER_LENGTH, 0);
1393 struct ldp_pdu pdu;
1397 pdu.version = htons(LDP_VERSION);
1398 pdu.ldp_id = ldp_id;
1399 pdu.label_space = 0;
1400 pdu.length = htons(ntohs(t->length) + TLV_TYPE_LENGTH +
1403 return send_message(p, &pdu, t);