Lines Matching refs:ntohs
47 UINT16_t len = ntohs(packet->length); in parsePacket()
148 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT()
149 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT()
150 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT()
151 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT()
156 ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT()
157 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT()
158 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT()
159 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT()
173 int len = ntohs(packet->length); in pppoe_printpkt()
176 switch (ntohs(packet->ethHdr.h_proto)) { in pppoe_printpkt()
199 printer(arg, " session 0x%x length %d\n", ntohs(packet->session), len); in pppoe_printpkt()
205 ntohs(packet->session), len); in pppoe_printpkt()
209 ntohs(packet->ethHdr.h_proto)); in pppoe_printpkt()
214 if (ntohs(packet->ethHdr.h_proto) != ETH_PPPOE_DISCOVERY) in pppoe_printpkt()