Searched refs:PP_HTONS (Results 1 – 17 of 17) sorted by relevance
/reactos/drivers/network/tcpip/lwip/src/apps/netbiosns/ |
H A D | netbiosns.c | 373 if (netbios_question_hdr->type == PP_HTONS(NETB_QTYPE_NB)) { in netbiosns_recv() 385 resp->resp_hdr.flags = PP_HTONS(NETB_HFLAG_RESPONSE | in netbiosns_recv() 390 resp->resp_hdr.answerRRs = PP_HTONS(1); in netbiosns_recv() 400 …resp->resp_name.datalen = PP_HTONS(sizeof(resp->resp_name.flags) + sizeof(resp->resp_name.add… in netbiosns_recv() 401 resp->resp_name.flags = PP_HTONS(NETB_NFLAG_NODETYPE_BNODE); in netbiosns_recv() 412 } else if (netbios_question_hdr->type == PP_HTONS(NETB_QTYPE_NBSTAT)) { in netbiosns_recv() 431 …resp->answer_hdr.flags = PP_HTONS(NETB_HFLAG_RESPONSE | NETB_HFLAG_OPCODE_NAME_QUERY | N… in netbiosns_recv() 434 resp->answer_hdr.answerRRs = PP_HTONS(1); in netbiosns_recv() 442 resp->packet_type = PP_HTONS(0x21); in netbiosns_recv() 444 resp->cls = PP_HTONS(1); in netbiosns_recv() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/netif/ |
H A D | ethernet.c | 111 if (type == PP_HTONS(ETHTYPE_VLAN)) { 173 case PP_HTONS(ETHTYPE_IP): 190 case PP_HTONS(ETHTYPE_ARP): 210 case PP_HTONS(ETHTYPE_PPPOEDISC): /* PPP Over Ethernet Discovery Stage */ 214 case PP_HTONS(ETHTYPE_PPPOE): /* PPP Over Ethernet Session Stage */ 220 case PP_HTONS(ETHTYPE_IPV6): /* IPv6 */ 298 eth_type_be = PP_HTONS(ETHTYPE_VLAN);
|
/reactos/drivers/network/tcpip/lwip/src/apps/tftp/ |
H A D | tftp.c | 128 payload[0] = PP_HTONS(opcode); in init_packet() 264 case PP_HTONS(TFTP_RRQ): /* fall through */ in tftp_recv() 265 case PP_HTONS(TFTP_WRQ): { in tftp_recv() 300 tftp_state.handle = tftp_state.ctx->open(filename, mode, opcode == PP_HTONS(TFTP_WRQ)); in tftp_recv() 308 …LWIP_DEBUGF(TFTP_DEBUG | LWIP_DBG_STATE, ("tftp: %s request from ", (opcode == PP_HTONS(TFTP_WRQ))… in tftp_recv() 315 if (opcode == PP_HTONS(TFTP_WRQ)) { in tftp_recv() 326 case PP_HTONS(TFTP_DATA): { in tftp_recv() 366 case PP_HTONS(TFTP_ACK): { in tftp_recv() 401 case PP_HTONS(TFTP_ERROR): in tftp_recv()
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | def.h | 90 #define PP_HTONS(x) ((u16_t)(x)) macro 108 #define PP_HTONS(x) ((u16_t)((((x) & (u16_t)0x00ffU) << 8) | (((x) & (u16_t)0xff00U) >> 8))) 109 #define PP_NTOHS(x) PP_HTONS(x)
|
/reactos/drivers/network/tcpip/lwip/src/core/ |
H A D | dns.c | 805 hdr.numquestions = PP_HTONS(1); in dns_send() 832 qry.type = PP_HTONS(DNS_RRTYPE_AAAA); in dns_send() 834 qry.type = PP_HTONS(DNS_RRTYPE_A); in dns_send() 836 qry.cls = PP_HTONS(DNS_RRCLASS_IN); in dns_send() 1257 if ((qry.cls != PP_HTONS(DNS_RRCLASS_IN)) || in dns_recv() 1258 … (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_AAAA))) || in dns_recv() 1259 … (!LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_A)))) { in dns_recv() 1303 if (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) { in dns_recv() 1305 … if ((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.len == PP_HTONS(sizeof(ip4_addr_t)))) { in dns_recv() 1324 … if ((ans.type == PP_HTONS(DNS_RRTYPE_AAAA)) && (ans.len == PP_HTONS(sizeof(ip6_addr_p_t)))) { in dns_recv()
|
H A D | def.c | 78 return PP_HTONS(n); in lwip_htons()
|
H A D | tcp_out.c | 1994 wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); in tcp_rst_common() 1996 wnd = PP_HTONS(TCP_WND); in tcp_rst_common()
|
/reactos/drivers/network/tcpip/lwip/src/core/ipv4/ |
H A D | icmp.c | 219 if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input() 220 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1); in icmp_input() 222 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8)); in icmp_input()
|
H A D | etharp.c | 656 if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || 659 (hdr->proto != PP_HTONS(ETHTYPE_IP))) { 708 case PP_HTONS(ARP_REQUEST): 732 case PP_HTONS(ARP_REPLY): 1149 hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET); 1150 hdr->proto = PP_HTONS(ETHTYPE_IP);
|
H A D | ip4.c | 333 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) { in ip4_forward() 334 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1)); in ip4_forward() 336 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100))); in ip4_forward() 671 if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) { 674 …, p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (u16_t)(…
|
H A D | igmp.c | 745 ra[0] = PP_HTONS(ROUTER_ALERT); in igmp_ip_output_if()
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/prot/ |
H A D | tcp.h | 90 …hdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS(~TCP_FLAGS)) | lw…
|
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/ |
H A D | vj.c | 187 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || np->tot_len < 40) { in vj_compress_tcp()
|
H A D | pppoe.c | 1070 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); in pppoe_send_padt()
|
/reactos/drivers/network/tcpip/lwip/test/unit/api/ |
H A D | test_sockets.c | 706 sa_listen.sin_port = PP_HTONS(port); in START_TEST()
|
/reactos/drivers/network/tcpip/lwip/test/unit/tcp/ |
H A D | test_tcp.c | 371 EXPECT(tcphdr.dest == PP_HTONS(TEST_REMOTE_PORT)); in START_TEST() 372 EXPECT(tcphdr.src == PP_HTONS(TEST_LOCAL_PORT)); in START_TEST()
|
/reactos/drivers/network/tcpip/lwip/src/core/ipv6/ |
H A D | ip6.c | 1001 PP_HTONS(IP6_FRAG_OFFSET_MASK | IP6_FRAG_MORE_FLAG)) == 0) {
|