Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 22 of 22) sorted by relevance

/u-boot/net/
A Dnet.c908 u16 ip_off = ntohs(ip->ip_off); in __net_defragment()
1068 ntohs(ip->udp_len)); in receive_icmp()
1153 cti = ntohs(vet->vet_tag); in net_process_received_packet()
1201 len = ntohs(ip->ip_len); in net_process_received_packet()
1260 if (ntohs(ip->udp_len) < UDP_HDR_SIZE || ntohs(ip->udp_len) > ntohs(ip->ip_len)) in net_process_received_packet()
1280 sumlen = ntohs(ip->udp_len); in net_process_received_packet()
1306 ntohs(ip->udp_dst), in net_process_received_packet()
1307 ntohs(ip->udp_src), in net_process_received_packet()
1314 ntohs(ip->udp_dst), in net_process_received_packet()
1316 ntohs(ip->udp_src), in net_process_received_packet()
[all …]
A Drarp.c39 if ((ntohs(arp->ar_op) != RARPOP_REPLY) || in rarp_receive()
40 (ntohs(arp->ar_hrd) != ARP_ETHER) || in rarp_receive()
41 (ntohs(arp->ar_pro) != PROT_IP) || in rarp_receive()
A Darp.c150 if (ntohs(arp->ar_hrd) != ARP_ETHER) in arp_receive()
152 if (ntohs(arp->ar_pro) != PROT_IP) in arp_receive()
165 switch (ntohs(arp->ar_op)) { in arp_receive()
237 ntohs(arp->ar_op)); in arp_receive()
A Dcdp.c282 type = ntohs(ss[0]); in cdp_receive()
283 tlen = ntohs(ss[1]); in cdp_receive()
322 vlan = ntohs(*ss); in cdp_receive()
A Dtftp.c497 switch (ntohs(proto)) { in tftp_handler()
511 int block = ntohs(*s); in tftp_handler()
612 if (ntohs(*(__be16 *)pkt) != (ushort)(tftp_cur_block + 1)) { in tftp_handler()
614 ntohs(*(__be16 *)pkt), in tftp_handler()
690 pkt + 2, ntohs(*(__be16 *)pkt)); in tftp_handler()
692 switch (ntohs(*(__be16 *)pkt)) { in tftp_handler()
A Dlink_local.c254 eth_get_name(), ntohs(arp->ar_pro), in link_local_receive_arp()
255 ntohs(arp->ar_op)); in link_local_receive_arp()
A Ddns.c136 if (ntohs(header->nqueries) != 1) in dns_handler()
A Dfastboot.c277 header.seq = ntohs(header.seq); in fastboot_handler()
A Dbootp.c265 ntohs(*(ushort *)(ext + 2)); in bootp_process_vendor_field()
/u-boot/test/dm/
A Deth.c274 if (ntohs(eth->et_protlen) != PROT_ARP) in sb_check_arp_reply()
279 if (ntohs(arp->ar_op) != ARPOP_REPLY) in sb_check_arp_reply()
315 if (ntohs(eth->et_protlen) == PROT_ARP && in sb_with_async_arp_handler()
316 ntohs(arp->ar_op) == ARPOP_REQUEST) { in sb_with_async_arp_handler()
360 if (ntohs(eth->et_protlen) != PROT_IP) in sb_check_ping_reply()
400 if (ntohs(eth->et_protlen) == PROT_ARP && in sb_with_async_ping_handler()
401 ntohs(arp->ar_op) == ARPOP_REQUEST) { in sb_with_async_ping_handler()
/u-boot/test/log/
A Dsyslog_test.c38 ut_asserteq(ntohs(eth_hdr->et_protlen), PROT_IP); in sb_log_tx_handler()
45 ut_asserteq(ntohs(ip_udp_hdr->udp_dst), 514); in sb_log_tx_handler()
47 ntohs(ip_udp_hdr->udp_len)); in sb_log_tx_handler()
52 ntohs(ip_udp_hdr->udp_len) - UDP_HDR_SIZE); in sb_log_tx_handler()
/u-boot/include/linux/byteorder/
A Dgeneric.h130 #undef ntohs
142 #define ntohs(x) ___ntohs(x) macro
/u-boot/tools/
A Dupdate_octeon_header.c404 switch (ntohs(header.image_type)) { in main()
430 if (ntohs(header.image_type) >= BL_HEADER_IMAGE_CUST_RESERVED_MIN && in main()
431 ntohs(header.image_type) <= BL_HEADER_IMAGE_CUST_RESERVED_MAX) in main()
A Dmxsimage.c1718 ntohs(hdr->product_version.major), in sb_verify_image_header()
1719 ntohs(hdr->product_version.minor), in sb_verify_image_header()
1720 ntohs(hdr->product_version.revision)); in sb_verify_image_header()
1722 ntohs(hdr->component_version.major), in sb_verify_image_header()
1723 ntohs(hdr->component_version.minor), in sb_verify_image_header()
1724 ntohs(hdr->component_version.revision)); in sb_verify_image_header()
/u-boot/lib/efi_selftest/
A Defi_selftest_snp.c384 if (buffer.p.eth_hdr.et_protlen != ntohs(PROT_IP) || in execute()
387 buffer.p.ip_udp.udp_src != ntohs(67) || in execute()
388 buffer.p.ip_udp.udp_dst != ntohs(68) || in execute()
/u-boot/drivers/net/
A Dsandbox.c68 if (ntohs(eth->et_protlen) != PROT_ARP) in sandbox_eth_arp_req_to_reply()
73 if (ntohs(arp->ar_op) != ARPOP_REQUEST) in sandbox_eth_arp_req_to_reply()
125 if (ntohs(eth->et_protlen) != PROT_IP) in sandbox_eth_ping_req_to_reply()
A Dsandbox-raw.c50 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_raw_send()
A Dxilinx_emaclite.c511 switch (ntohs(eth->et_protlen)) { in emaclite_recv()
518 length = ntohs(ip->ip_len); in emaclite_recv()
/u-boot/cmd/
A Dnet.c324 ntohs(cdp_appliance_vlan)); in cdp_update_env()
331 printf("CDP offered native VLAN %d\n", ntohs(cdp_native_vlan)); in cdp_update_env()
/u-boot/board/ge/common/
A Dvpd_reader.c152 u16 size_bits = ntohs(*(u16 *)(&data[12])); in vpd_reader()
/u-boot/drivers/net/phy/
A Dncsi.c198 if (ntohs(hdr->reason) == 0x05) in ncsi_validate_rsp()
203 if (ntohs(hdr->common.length) != payload) { in ncsi_validate_rsp()
602 if (ntohs(hdr->common.length) != payload) { in ncsi_handle_aen()
/u-boot/lib/efi_loader/
A Defi_net.c618 protlen = ntohs(eth_hdr->et_protlen); in efi_net_receive()
621 protlen = ntohs(*(u16 *)&receive_buffer[rx_packet_idx][hdr_size - 2]); in efi_net_receive()

Completed in 51 milliseconds