Searched defs:PP_HTONS (Results 1 - 2 of 2) sorted by relevance

/external/syslinux/core/lwip/src/include/lwip/
H A Ddef.h92 #define PP_HTONS(x) (x) macro
112 #define PP_HTONS(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8)) macro
113 #define PP_NTOHS(x) PP_HTONS(x)
/external/syslinux/core/lwip/src/netif/
H A Detharp.c418 ethhdr->type = PP_HTONS(ETHTYPE_IP);
631 if (ethhdr->type == PP_HTONS(ETHTYPE_VLAN)) {
696 if (ethhdr->type == PP_HTONS(ETHTYPE_VLAN)) {
702 if ((hdr->hwtype != PP_HTONS(HWTYPE_ETHERNET)) ||
705 (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
747 case PP_HTONS(ARP_REQUEST):
798 case PP_HTONS(ARP_REPLY):
1170 hdr->hwtype = PP_HTONS(HWTYPE_ETHERNET);
1171 hdr->proto = PP_HTONS(ETHTYPE_IP);
1176 ethhdr->type = PP_HTONS(ETHTYPE_AR
1268 case PP_HTONS(ETHTYPE_IP): function
1286 case PP_HTONS(ETHTYPE_ARP): function
[all...]

Completed in 4820 milliseconds