Searched refs:ntoh16 (Results 1 - 10 of 10) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/pptp/
H A Dpptp_ctrl.c245 type = ntoh16(packet->ctrl_type);
572 if (ntoh16(header->reserved0) != 0)
574 ntoh16(header->reserved0));
575 if (ntoh16(header->length) < sizeof(struct pptp_header)) goto throwitout;
576 if (ntoh16(header->length) > PPTP_CTRL_SIZE_MAX) goto throwitout;
578 if (ntoh16(header->length) > (conn->read_size-bad_bytes))
582 if ((ntoh16(header->pptp_type) == PPTP_MESSAGE_CONTROL) &&
583 (ntoh16(header->length) !=
584 PPTP_CTRL_SIZE(ntoh16(header->ctrl_type))))
587 *size = ntoh16(heade
[all...]
H A Dpptp_msg.h16 #define ntoh16(x) ntohs(x) macro
230 (!( ( ntoh16(((struct pptp_header *)header)->length) < (length) ) || \
231 ( ntoh16(((struct pptp_header *)header)->pptp_type) !=(type) ) || \
233 ( ntoh16(((struct pptp_header *)header)->ctrl_type) > PPTP_SET_LINK_INFO) || \
234 ( ntoh16(((struct pptp_header *)header)->reserved0) !=0 ) ))
H A Dpptp_gre.c598 len = ntoh16(*(short int *)(buffer + start + 6)) + 4;
703 (ntoh16(header->protocol) != PPTP_GRE_PROTO)||
714 ntoh8(header->ver)&0x7F, ntoh16(header->protocol),
723 if (ntoh16(header->call_id) != pptp_gre_call_id) return 0;
741 payload_len = ntoh16(header->payload_len);
/netgear-R7000-V1.0.7.12_1.2.5/src/include/proto/
H A Dbcmtcp.h83 #define TCP_SRC_PORT(tcp_hdr) (ntoh16(((struct bcmtcp_hdr*)(tcp_hdr))->src_port))
84 #define TCP_DST_PORT(tcp_hdr) (ntoh16(((struct bcmtcp_hdr*)(tcp_hdr))->dst_port))
H A Dbcmproto.h88 type = ntoh16(eh->ether_type);
97 type = ntoh16(sh->type);
106 type = ntoh16(svh->ether_type);
118 type = ntoh16(evh->ether_type);
/netgear-R7000-V1.0.7.12_1.2.5/src/include/
H A Dbcmendian.h74 #define ntoh16(i) bcmswap16(i) macro
93 #define ntoh16(i) (i) macro
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/pptpd/pptpd-1.3.4/
H A Dpptpgre.c359 (ntoh16(header->protocol) != PPTP_GRE_PROTO) || /* GRE protocol for PPTP */
396 unsigned payload_len = ntoh16(header->payload_len);
H A Dpptpdefs.h16 #define ntoh16(x) ntohs(x) macro
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/
H A Dpptp.c56 #define ntoh16(x) ntohs(x) macro
475 int len = ntoh16(pgrehdr->payload_len - 2);
1132 len = ntoh16(pgrehdr->payload_len - 2);
/netgear-R7000-V1.0.7.12_1.2.5/src/shared/
H A Dbcmutils.c2055 p += snprintf(p, 8, "%x", ntoh16(a[i]));
2650 vlan_tag = ntoh16(evh->vlan_tag);

Completed in 192 milliseconds