Searched refs:ntohs (Results 1 – 22 of 22) sorted by relevance
| /u-boot/net/ |
| A D | net.c | 908 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 D | rarp.c | 39 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 D | arp.c | 150 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 D | cdp.c | 282 type = ntohs(ss[0]); in cdp_receive() 283 tlen = ntohs(ss[1]); in cdp_receive() 322 vlan = ntohs(*ss); in cdp_receive()
|
| A D | tftp.c | 497 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 D | link_local.c | 254 eth_get_name(), ntohs(arp->ar_pro), in link_local_receive_arp() 255 ntohs(arp->ar_op)); in link_local_receive_arp()
|
| A D | dns.c | 136 if (ntohs(header->nqueries) != 1) in dns_handler()
|
| A D | fastboot.c | 277 header.seq = ntohs(header.seq); in fastboot_handler()
|
| A D | bootp.c | 265 ntohs(*(ushort *)(ext + 2)); in bootp_process_vendor_field()
|
| /u-boot/test/dm/ |
| A D | eth.c | 274 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 D | syslog_test.c | 38 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 D | generic.h | 130 #undef ntohs 142 #define ntohs(x) ___ntohs(x) macro
|
| /u-boot/tools/ |
| A D | update_octeon_header.c | 404 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 D | mxsimage.c | 1718 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 D | efi_selftest_snp.c | 384 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 D | sandbox.c | 68 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 D | sandbox-raw.c | 50 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_raw_send()
|
| A D | xilinx_emaclite.c | 511 switch (ntohs(eth->et_protlen)) { in emaclite_recv() 518 length = ntohs(ip->ip_len); in emaclite_recv()
|
| /u-boot/cmd/ |
| A D | net.c | 324 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 D | vpd_reader.c | 152 u16 size_bits = ntohs(*(u16 *)(&data[12])); in vpd_reader()
|
| /u-boot/drivers/net/phy/ |
| A D | ncsi.c | 198 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 D | efi_net.c | 618 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