Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 24 of 24) sorted by relevance

/u-boot/net/
A Darp.c48 net_arp_wait_packet_ip.s_addr = 0; in arp_init()
49 net_arp_wait_reply_ip.s_addr = 0; in arp_init()
87 if ((net_arp_wait_packet_ip.s_addr & net_netmask.s_addr) != in arp_request()
88 (net_ip.s_addr & net_netmask.s_addr)) { in arp_request()
89 if (net_gateway.s_addr == 0) { in arp_request()
159 if (net_ip.s_addr == 0) in arp_receive()
162 if (net_read_ip(&arp->ar_tpa).s_addr != net_ip.s_addr) in arp_receive()
185 if ((net_read_ip(&arp->ar_tpa).s_addr & net_netmask.s_addr) != in arp_receive()
186 (net_read_ip(&arp->ar_spa).s_addr & net_netmask.s_addr)) in arp_receive()
200 if (net_server_ip.s_addr == net_arp_wait_packet_ip.s_addr) { in arp_receive()
[all …]
A Dlink_local.c78 ip.s_addr = htonl((LINKLOCAL_ADDR + 0x0100) + tmp); in pick()
111 if (ip.s_addr != 0 && in link_local_start()
112 (ntohl(ip.s_addr) & IN_CLASSB_NET) != LINKLOCAL_ADDR) { in link_local_start()
117 net_netmask.s_addr = htonl(IN_CLASSB_NET); in link_local_start()
120 if (ip.s_addr == 0) in link_local_start()
140 struct in_addr zero_ip = {.s_addr = 0}; in link_local_timeout()
217 struct in_addr null_ip = {.s_addr = 0}; in link_local_receive_arp()
329 net_ip.s_addr = 0; in link_local_receive_arp()
A Dbootp.c160 if (tmp_ip.s_addr != 0 && (overwrite_serverip || !net_server_ip.s_addr)) in store_bootp_params()
220 if (net_netmask.s_addr == 0) in bootp_process_vendor_field()
227 if (net_gateway.s_addr == 0) in bootp_process_vendor_field()
335 if (net_netmask.s_addr) in bootp_process_vendor()
338 if (net_gateway.s_addr) in bootp_process_vendor()
355 if (net_ntp_server.s_addr) in bootp_process_vendor()
494 if (server_ip.s_addr) { in dhcp_extended()
505 if (requested_ip.s_addr) { in dhcp_extended()
790 zero_ip.s_addr = 0; in bootp_request()
1014 zero_ip.s_addr = 0; in dhcp_send_request_packet()
[all …]
A Dnet.c406 net_ping_ip.s_addr = 0; in net_loop()
477 net_ip.s_addr = 0; in net_loop()
484 net_ip.s_addr = 0; in net_loop()
491 net_ip.s_addr = 0; in net_loop()
833 if (dest.s_addr == 0) in net_send_ip_packet()
834 dest.s_addr = 0xFFFFFFFF; in net_send_ip_packet()
837 if (dest.s_addr == 0xFFFFFFFF) in net_send_ip_packet()
1218 if (net_ip.s_addr && dst_ip.s_addr != net_ip.s_addr && in net_process_received_packet()
1335 if (net_ping_ip.s_addr == 0) { in net_check_prereq()
1375 if (net_ip.s_addr == 0) { in net_check_prereq()
[all …]
A Dtftp.c790 net_ip.s_addr & 0xFF, in tftp_start()
791 (net_ip.s_addr >> 8) & 0xFF, in tftp_start()
792 (net_ip.s_addr >> 16) & 0xFF, in tftp_start()
793 (net_ip.s_addr >> 24) & 0xFF); in tftp_start()
812 if (net_gateway.s_addr && net_netmask.s_addr) { in tftp_start()
816 our_net.s_addr = net_ip.s_addr & net_netmask.s_addr; in tftp_start()
817 remote_net.s_addr = tftp_remote_ip.s_addr & net_netmask.s_addr; in tftp_start()
818 if (our_net.s_addr != remote_net.s_addr) in tftp_start()
A Dping.c89 if (src_ip.s_addr == net_ping_ip.s_addr) in ping_receive()
93 if (net_ip.s_addr == 0) in ping_receive()
A Dnfs.c883 net_ip.s_addr & 0xFF, in nfs_start()
884 (net_ip.s_addr >> 8) & 0xFF, in nfs_start()
885 (net_ip.s_addr >> 16) & 0xFF, in nfs_start()
886 (net_ip.s_addr >> 24) & 0xFF); in nfs_start()
901 if (net_gateway.s_addr && net_netmask.s_addr) { in nfs_start()
905 our_net.s_addr = net_ip.s_addr & net_netmask.s_addr; in nfs_start()
906 server_net.s_addr = nfs_server_ip.s_addr & net_netmask.s_addr; in nfs_start()
907 if (our_net.s_addr != server_net.s_addr) in nfs_start()
A Deth_legacy.c309 mcast_mac[5] = htonl(mcast_ip.s_addr) & 0xff; in eth_mcast_join()
310 mcast_mac[4] = (htonl(mcast_ip.s_addr)>>8) & 0xff; in eth_mcast_join()
311 mcast_mac[3] = (htonl(mcast_ip.s_addr)>>16) & 0x7f; in eth_mcast_join()
A Drarp.c46 if (net_server_ip.s_addr == 0) in rarp_receive()
A Dsntp.c105 if (net_ntp_server.s_addr == 0) { in sntp_prereq()
/u-boot/lib/
A Dnet_utils.c21 addr.s_addr = 0; in string_to_ip()
25 for (addr.s_addr = 0, i = 0; i < 4; ++i) { in string_to_ip()
28 addr.s_addr = 0; in string_to_ip()
32 addr.s_addr = 0; in string_to_ip()
35 addr.s_addr <<= 8; in string_to_ip()
36 addr.s_addr |= (val & 0xFF); in string_to_ip()
42 addr.s_addr = htonl(addr.s_addr); in string_to_ip()
/u-boot/drivers/net/
A Dnetconsole.c70 return (ip.s_addr == ~0 || /* 255.255.255.255 (global bcast) */ in is_broadcast()
71 ((netmask.s_addr & our_ip.s_addr) == in is_broadcast()
72 (netmask.s_addr & ip.s_addr) && /* on the same net and */ in is_broadcast()
73 (netmask.s_addr | ip.s_addr) == ~0)); /* bcast to our net */ in is_broadcast()
86 if (!nc_ip.s_addr) in refresh_settings_from_env()
94 nc_ip.s_addr = ~0; /* ncip is not set, so broadcast */ in refresh_settings_from_env()
144 if (src_ip.s_addr != nc_ip.s_addr && !is_broadcast(nc_ip)) in nc_input_packet()
/u-boot/cmd/
A Dnet.c130 if (net_gateway.s_addr) { in netboot_update_env()
135 if (net_netmask.s_addr) { in netboot_update_env()
150 if (net_ip.s_addr) { in netboot_update_env()
159 if (net_server_ip.s_addr) { in netboot_update_env()
164 if (net_dns_server.s_addr) { in netboot_update_env()
169 if (net_dns_server2.s_addr) { in netboot_update_env()
186 if (net_ntp_server.s_addr) { in netboot_update_env()
296 if (net_ping_ip.s_addr == 0) in do_ping()
373 if (net_ntp_server.s_addr == 0) { in do_sntp()
379 if (net_ntp_server.s_addr == 0) { in do_sntp()
[all …]
A Dpxe.c89 sprintf(ip_addr, "%08X", ntohl(net_ip.s_addr)); in pxe_ipaddr_paths()
A Delf.c234 u32 mask = env_get_ip("netmask").s_addr; in do_bootvx()
/u-boot/test/dm/
A Deth.c295 ut_assert(net_read_ip(&arp->ar_spa).s_addr == net_ip.s_addr); in sb_check_arp_reply()
297 ut_assert(net_read_ip(&arp->ar_tpa).s_addr == in sb_check_arp_reply()
298 string_to_ip("1.1.2.4").s_addr); in sb_check_arp_reply()
381 ut_assert(net_read_ip(&ip->ip_src).s_addr == net_ip.s_addr); in sb_check_ping_reply()
382 ut_assert(net_read_ip(&ip->ip_dst).s_addr == in sb_check_ping_reply()
383 string_to_ip("1.1.2.4").s_addr); in sb_check_ping_reply()
/u-boot/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.h31 .s_addr = _s_addr, \
104 u32 s_addr; member
A Dpinctrl-mtk-common.c110 pfd->offset = c->s_addr + c->x_addrs * (bits / c->sz_reg); in mtk_hw_pin_field_lookup()
/u-boot/tools/
A Dncb.c25 addr.sin_addr.s_addr = INADDR_ANY; /* receive broadcasts */ in main()
/u-boot/arch/arm/mach-rmobile/include/mach/
A Drcar-mstp.h100 u32 s_addr; member
/u-boot/arch/sandbox/cpu/
A Deth-raw-os.c156 device->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in _local_inet_start()
241 addr.sin_addr.s_addr = iph->saddr; in sandbox_eth_raw_os_send()
/u-boot/common/
A Dlog_syslog.c102 bcast_ip.s_addr = 0xFFFFFFFFL; in log_syslog_emit()
/u-boot/test/log/
A Dsyslog_test.c44 ut_asserteq(ip_udp_hdr->ip_dst.s_addr, 0xffffffff); in sb_log_tx_handler()
/u-boot/include/
A Dnet.h60 __be32 s_addr; member

Completed in 27 milliseconds