Searched refs:PP_HTONS (Results 1 – 11 of 11) sorted by relevance
88 #define PP_HTONS(x) (x) macro108 #define PP_HTONS(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))109 #define PP_NTOHS(x) PP_HTONS(x)
178 …hdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_t)(…
423 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 …]
195 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()
253 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)), …
749 ra[0] = PP_HTONS(ROUTER_ALERT); in igmp_ip_output_if()
585 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()
1215 tcphdr->wnd = PP_HTONS(TCP_WND); in tcp_rst()
328 low_byte_first = (PP_HTONS((unsigned short int)1) != 1); in ChapMS_NT()
163 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || pb->tot_len < 40) { in vj_compress_tcp()
961 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); in pppoe_send_padt()
Completed in 19 milliseconds