Home
last modified time | relevance | path

Searched refs:PP_HTONS (Results 1 - 17 of 17) sorted by relevance

/third_party/lwip/src/apps/netbiosns/
H A Dnetbiosns.c373 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.addr)); 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 | NETB_HFLAG_AUTHORATIVE); in netbiosns_recv()
432 /* resp->answer_hdr.questions = PP_HTONS(0); done by memset() */ in netbiosns_recv()
434 resp->answer_hdr.answerRRs = PP_HTONS(1); in netbiosns_recv()
435 /* resp->answer_hdr.authorityRRs = PP_HTONS( in netbiosns_recv()
[all...]
/third_party/lwip/src/apps/tftp/
H A Dtftp_server.c130 payload[0] = PP_HTONS(TFTP_ERROR); in send_error()
150 payload[0] = PP_HTONS(TFTP_ACK); in send_ack()
189 payload[0] = PP_HTONS(TFTP_DATA); in send_data()
225 case PP_HTONS(TFTP_RRQ): /* fall through */ in recv() function
226 case PP_HTONS(TFTP_WRQ): { in recv()
256 tftp_state.handle = tftp_state.ctx->open(filename, mode, opcode == PP_HTONS(TFTP_WRQ)); in recv()
264 LWIP_DEBUGF(TFTP_DEBUG | LWIP_DBG_STATE, ("tftp: %s request from ", (opcode == PP_HTONS(TFTP_WRQ)) ? "write" : "read")); in recv()
271 if (opcode == PP_HTONS(TFTP_WRQ)) { in recv()
282 case PP_HTONS(TFTP_DATA): { in recv() function
322 case PP_HTONS(TFTP_AC in recv() function
[all...]
/third_party/lwip/src/netif/
H A Dethernet.c115 if (type == PP_HTONS(ETHTYPE_VLAN)) {
173 case PP_HTONS(ETHTYPE_IP): function
190 case PP_HTONS(ETHTYPE_ARP): function
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 */ function
290 eth_type_be = PP_HTONS(ETHTYPE_VLAN);
/third_party/lwip/src/include/lwip/
H A Ddef.h90 #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))) macro
109 #define PP_NTOHS(x) PP_HTONS(x)
/third_party/lwip/src/core/
H A Ddns.c830 hdr.numquestions = PP_HTONS(1); in dns_send()
886 qry.type = PP_HTONS(DNS_RRTYPE_AAAA); in dns_send()
888 qry.type = PP_HTONS(DNS_RRTYPE_A); in dns_send()
890 qry.cls = PP_HTONS(DNS_RRCLASS_IN); in dns_send()
1350 if ((qry.cls != PP_HTONS(DNS_RRCLASS_IN)) || in dns_recv()
1351 (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_AAAA))) || in dns_recv()
1352 (!LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_A)))) { in dns_recv()
1396 if (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) { in dns_recv()
1398 if ((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.len == PP_HTONS(sizeo in dns_recv()
[all...]
H A Ddef.c78 return PP_HTONS(n); in lwip_htons()
H A Dtcp_out.c2007 wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); in tcp_rst()
2009 wnd = PP_HTONS(TCP_WND); in tcp_rst()
/third_party/lwip/src/core/ipv4/
H A Dicmp.c219 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 Detharp.c687 if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
690 (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
732 case PP_HTONS(ARP_REQUEST):
756 case PP_HTONS(ARP_REPLY):
1180 hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET);
1181 hdr->proto = PP_HTONS(ETHTYPE_IP);
H A Dip4.c366 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) {
367 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1));
369 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100)));
678 if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
681 lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (u16_t)((lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK) * 8)));
H A Digmp.c782 ra[0] = PP_HTONS(ROUTER_ALERT);
/third_party/lwip/src/include/lwip/prot/
H A Dtcp.h90 #define TCPH_FLAGS_SET(phdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS(~TCP_FLAGS)) | lwip_htons(flags))
/third_party/lwip/src/netif/ppp/
H A Dvj.c187 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || np->tot_len < 40) { in vj_compress_tcp()
H A Dpppoe.c1051 ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); in pppoe_send_padt()
/third_party/lwip/test/unit/api/
H A Dtest_sockets.c706 sa_listen.sin_port = PP_HTONS(port); in START_TEST()
/third_party/lwip/test/unit/tcp/
H A Dtest_tcp.c370 EXPECT(tcphdr.dest == PP_HTONS(TEST_REMOTE_PORT)); in START_TEST()
371 EXPECT(tcphdr.src == PP_HTONS(TEST_LOCAL_PORT)); in START_TEST()
/third_party/lwip/src/core/ipv6/
H A Dip6.c1057 PP_HTONS(IP6_FRAG_OFFSET_MASK | IP6_FRAG_MORE_FLAG)) == 0) {

Completed in 19 milliseconds