Home | History | Annotate | Download | only in ldpd

Lines Matching refs:htons

347 		su.sin.sin_port = htons(LDP_PORT);
354 su.sin6.sin6_port = htons(LDP_PORT);
373 sa.sin_port = htons(LDP_PORT);
445 spdu->version = htons(LDP_VERSION);
446 spdu->length = htons(IPV4_HELLO_MSG_SIZE - PDU_VER_LENGTH);
451 t->type = htons(LDP_HELLO);
452 t->length = htons(MSGID_SIZE +
462 cht->type = htons(TLV_COMMON_HELLO);
463 cht->length = htons(sizeof(cht->holdtime) + sizeof(cht->res));
464 cht->holdtime = htons(ldp_holddown_time);
473 trtlv->type = htons(TLV_IPV4_TRANSPORT);
474 trtlv->length = htons(sizeof(struct in_addr));
481 sadest.sin_port = htons(LDP_PORT);
547 spdu->length = htons(IPV6_HELLO_MSG_SIZE - PDU_VER_LENGTH);
548 t->length = htons(MSGID_SIZE +
551 trtlv->length = htons(sizeof(struct in6_addr));
552 trtlv->type = htons(TLV_IPV6_TRANSPORT);
558 sadest6.sin6_port = htons(LDP_PORT);
609 sb, ifb->ifa_name, htons(spdu->length),
610 htons(t->length), htons(cht->length),
611 htons(trtlv->length));
1066 ti.type = htons(LDP_INITIALIZE);
1067 ti.length = htons(sizeof(struct init_tlv) - TLV_TYPE_LENGTH);
1069 ti.cs_type = htons(TLV_COMMON_SESSION);
1070 ti.cs_len = htons(CS_LEN);
1071 ti.cs_version = htons(LDP_VERSION);
1072 ti.cs_keepalive = htons(2 * ldp_keepalive_time);
1074 ti.cs_maxpdulen = htons(MAX_PDU_SIZE);
1086 kt.type = htons(LDP_KEEPALIVE);
1087 kt.length = htons(sizeof(kt.messageid));
1397 pdu.version = htons(LDP_VERSION);
1400 pdu.length = htons(ntohs(t->length) + TLV_TYPE_LENGTH +