Home
last modified time | relevance | path

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

12

/busybox-1.35.0/networking/
Darping.c197 BUILD_BUG_ON(sizeof(src_ip.s_addr) != 4); in recv_pack()
223 move_from_unaligned32(src_ip.s_addr, p + ah->ar_hln); in recv_pack()
224 move_from_unaligned32(dst_ip.s_addr, p + ah->ar_hln + 4 + ah->ar_hln); in recv_pack()
226 if (dst.s_addr != src_ip.s_addr) in recv_pack()
229 if ((src.s_addr != dst_ip.s_addr) in recv_pack()
247 || (src.s_addr && src.s_addr != dst_ip.s_addr)) in recv_pack()
260 if (dst_ip.s_addr != src.s_addr) { in recv_pack()
352 if ((option_mask32 & (DAD|UNSOLICITED)) == UNSOLICITED && src.s_addr == 0) in arping_main()
355 if (!(option_mask32 & DAD) || src.s_addr) { in arping_main()
363 if (src.s_addr) { in arping_main()
Dipcalc.c127 #define netmask (s_netmask.s_addr) in ipcalc_main()
128 #define broadcast (s_broadcast.s_addr) in ipcalc_main()
129 #define network (s_network.s_addr) in ipcalc_main()
130 #define ipaddr (s_ipaddr.s_addr) in ipcalc_main()
Droute.c67 #define mask_in_addr(x) (((struct sockaddr_in *)&((x).rt_genmask))->sin_addr.s_addr)
71 #define full_mask(x) (((struct sockaddr_in *)&(x))->sin_addr.s_addr)
325 mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in INET_setroute()
497 struct sockaddr_in s_addr; in bb_displayroutes() local
536 memset(&s_addr, 0, sizeof(struct sockaddr_in)); in bb_displayroutes()
537 s_addr.sin_family = AF_INET; in bb_displayroutes()
538 s_addr.sin_addr.s_addr = d; in bb_displayroutes()
539 sdest = INET_rresolve(&s_addr, (noresolve | 0x8000), m); /* 'default' instead of '*' */ in bb_displayroutes()
540 s_addr.sin_addr.s_addr = g; in bb_displayroutes()
541 sgw = INET_rresolve(&s_addr, (noresolve | 0x4000), m); /* Host instead of net */ in bb_displayroutes()
[all …]
Dzcip.c129 in.s_addr = nip; in nip_to_a()
276 || (net.s_addr & htonl(IN_CLASSB_NET)) != net.s_addr in zcip_main()
280 G.localnet_ip = ntohl(net.s_addr); in zcip_main()
285 || (ntohl(ip.s_addr) & IN_CLASSB_NET) != G.localnet_ip in zcip_main()
289 chosen_nip = ip.s_addr; in zcip_main()
Difconfig.c422 sai.sin_addr.s_addr = INADDR_ANY; in ifconfig_main()
430 sai.sin_addr.s_addr = (~sai_netmask) | (sai_hostname & sai_netmask); in ifconfig_main()
477 sai_hostname = sai.sin_addr.s_addr; in ifconfig_main()
479 sai_netmask = sai.sin_addr.s_addr; in ifconfig_main()
Dnetstat.c375 sscanf(local_addr, "%X", &localaddr->sin_addr.s_addr); in build_ipv4_addr()
501 && A.sin.sin_addr.s_addr != 0 \
505 # define NOT_NULL_ADDR(A) (A.sin.sin_addr.s_addr)
Ddnsd.c147 m->ip = ip.s_addr; /* in network order */ in parse_conf_file()
Dinterface.c110 for (i = 0; i < sizeof(sock_in->sin_addr.s_addr); i++) { in INET_getsock()
133 sock_in->sin_addr.s_addr = htonl(val); in INET_getsock()
Difplugd.c381 ((struct sockaddr_in*)(&ifrequest.ifr_addr))->sin_addr.s_addr = INADDR_ANY; in up_iface()
Dtraceroute.c832 || G.from_lsa->u.sin.sin_addr.s_addr != INADDR_ANY in print()
Dping.c717 inet_ntoa(*(struct in_addr *) &from->sin_addr.s_addr), in unpack4()
Difupdown.c315 d = ntohl(ip.s_addr); /* IP in host order */ in count_netmask_bits()
Dhttpd.c2232 remote_ip = ntohl(fromAddr->u.sin.sin_addr.s_addr); in handle_incoming_and_exit()
/busybox-1.35.0/libbb/
Dinet_common.c32 s_in->sin_addr.s_addr = INADDR_ANY; in INET_resolve()
54 s_in->sin_addr.s_addr = htonl(np->n_net); in INET_resolve()
101 nip = s_in->sin_addr.s_addr; in INET_rresolve()
Dxconnect.c103 void FAST_FUNC xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) in xconnect() argument
105 if (connect(s, s_addr, addrlen) < 0) { in xconnect()
108 if (s_addr->sa_family == AF_INET) in xconnect()
111 inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr)); in xconnect()
/busybox-1.35.0/networking/udhcp/
Ddhcprelay.c256 if (item->ip.sin_addr.s_addr == htonl(INADDR_ANY)) in pass_to_client()
257 item->ip.sin_addr.s_addr = htonl(INADDR_BROADCAST); in pass_to_client()
278 server_addr.sin_addr.s_addr = htonl(INADDR_BROADCAST); in dhcprelay_main()
Dsocket.c50 *nip = our_ip->sin_addr.s_addr; in udhcp_read_interface()
Ddumpleases.c80 addr.s_addr = lease.lease_nip; in dumpleases_main()
Dpacket.c227 sa.sin_addr.s_addr = source_nip; in udhcp_send_kernel_packet()
236 sa.sin_addr.s_addr = dest_nip; in udhcp_send_kernel_packet()
Dd6_socket.c41 *nip = ((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr; in d6_read_interface()
Ddhcpc.c780 temp_addr.s_addr = server; in send_select()
782 temp_addr.s_addr = requested; in send_select()
824 temp_addr.s_addr = server; in send_renew()
1129 temp_addr.s_addr = server_id; in perform_release()
1131 temp_addr.s_addr = requested_ip; in perform_release()
1701 temp_addr.s_addr = requested_ip = packet.yiaddr; in udhcpc_main()
1722 temp_addr.s_addr = server_id; in udhcpc_main()
1724 temp_addr.s_addr = packet.yiaddr; in udhcpc_main()
Ddhcpd.c262 temp.s_addr = nip; in nobody_responds_to_arp()
635 addr.s_addr = dhcp_pkt->yiaddr; in send_packet_verbose()
914 server_data.server_nip = lsa->u.sin.sin_addr.s_addr; in udhcpd_main()
Dcommon.c441 move_to_unaligned32((uint32_t*)arg, lsa->u.sin.sin_addr.s_addr); in udhcp_str2nip()
/busybox-1.35.0/klibc-utils/
Dipconfig.c.txt69 return in.s_addr;
/busybox-1.35.0/util-linux/
Dmount.c1614 mount_server_addr.sin_addr.s_addr = inet_addr(hostname); in nfsmount()

12