Searched refs:PP_HTONS (Results 1 – 11 of 11) sorted by relevance
92 #define PP_HTONS(x) (x) macro112 #define PP_HTONS(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))113 #define PP_NTOHS(x) PP_HTONS(x)
179 …hdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_t)(…
418 ethhdr->type = PP_HTONS(ETHTYPE_IP); in etharp_send_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_ARP);[all …]
194 if (iecho->chksum >= PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input()195 iecho->chksum += PP_HTONS(ICMP_ECHO << 8) + 1; in icmp_input()197 iecho->chksum += PP_HTONS(ICMP_ECHO << 8); in icmp_input()
204 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) { in ip_forward()205 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1); in ip_forward()207 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100)); in ip_forward()437 if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {440 …ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), …
761 ra[0] = PP_HTONS(ROUTER_ALERT); in igmp_ip_output_if()
590 hdr->numquestions = PP_HTONS(1); in dns_send()610 qry.type = PP_HTONS(DNS_RRTYPE_A); in dns_send()611 qry.cls = PP_HTONS(DNS_RRCLASS_IN); in dns_send()808 if((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) && in dns_recv()809 (ans.len == PP_HTONS(sizeof(ip_addr_t))) ) { in dns_recv()
1207 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()