Lines Matching refs:ntohs
49 UINT16_t len = ntohs(packet->length);
125 int len = ntohs(conn->hostUniq.length);
146 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
147 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
148 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
149 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
154 ntohs(conn->relayId.length) + TAG_HDR_SIZE);
155 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);
156 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
157 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
207 int len = ntohs(packet->length);
210 switch (ntohs(packet->ethHdr.h_proto)) {
233 printer(arg, " session 0x%x length %d\n", ntohs(packet->session), len);
239 ntohs(packet->session), len);
243 ntohs(packet->ethHdr.h_proto));
249 pppoe_printpkt_hex(printer, arg, packet->payload, ntohs(packet->length));
250 if (ntohs(packet->ethHdr.h_proto) != ETH_PPPOE_DISCOVERY)