Home
last modified time | relevance | path

Searched refs:PP_HTONS (Results 1 – 11 of 11) sorted by relevance

/lk-master/external/lib/lwip/include/lwip/
A Ddef.h88 #define PP_HTONS(x) (x) macro
108 #define PP_HTONS(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))
109 #define PP_NTOHS(x) PP_HTONS(x)
A Dtcp_impl.h178 …hdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_t)(…
/lk-master/external/lib/lwip/netif/
A Detharp.c423 ethhdr->type = PP_HTONS(ETHTYPE_IP); in etharp_send_ip()
651 if (ethhdr->type == PP_HTONS(ETHTYPE_VLAN)) {
725 (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
767 case PP_HTONS(ARP_REQUEST):
818 case PP_HTONS(ARP_REPLY):
1231 hdr->hwtype = PP_HTONS(HWTYPE_ETHERNET);
1232 hdr->proto = PP_HTONS(ETHTYPE_IP);
1237 ethhdr->type = PP_HTONS(ETHTYPE_ARP);
1304 if (type == PP_HTONS(ETHTYPE_VLAN)) {
1349 case PP_HTONS(ETHTYPE_IP):
[all …]
/lk-master/external/lib/lwip/core/ipv4/
A Dicmp.c195 if (iecho->chksum >= PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input()
196 iecho->chksum += PP_HTONS(ICMP_ECHO << 8) + 1; in icmp_input()
198 iecho->chksum += PP_HTONS(ICMP_ECHO << 8); in icmp_input()
A Dip.c253 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) { in ip_forward()
254 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1); in ip_forward()
256 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100)); in ip_forward()
507 if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
510 …ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), …
A Digmp.c749 ra[0] = PP_HTONS(ROUTER_ALERT); in igmp_ip_output_if()
/lk-master/external/lib/lwip/core/
A Ddns.c585 hdr->numquestions = PP_HTONS(1); in dns_send()
605 qry.type = PP_HTONS(DNS_RRTYPE_A); in dns_send()
606 qry.cls = PP_HTONS(DNS_RRCLASS_IN); in dns_send()
803 if((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) && in dns_recv()
804 (ans.len == PP_HTONS(sizeof(ip_addr_t))) ) { in dns_recv()
A Dtcp_out.c1215 tcphdr->wnd = PP_HTONS(TCP_WND); in tcp_rst()
/lk-master/external/lib/lwip/netif/ppp/
A Dchpms.c328 low_byte_first = (PP_HTONS((unsigned short int)1) != 1); in ChapMS_NT()
A Dvj.c163 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || pb->tot_len < 40) { in vj_compress_tcp()
A Dppp_oe.c961 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); in pppoe_send_padt()

Completed in 20 milliseconds