HomeSort by relevance Sort by last modified time
    Searched refs:s_addr (Results 1 - 25 of 254) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/tcpdump/missing/
inet_aton.c 58 addr->s_addr = inet_addr(cp);
59 return (addr->s_addr == INADDR_NONE) ? 0 : 1;
  /external/dhcpcd/
configure.c 371 if (rt->dest.s_addr == r->dest.s_addr &&
377 rt->net.s_addr == r->net.s_addr)
391 if (rt->gate.s_addr == INADDR_ANY)
394 else if (rt->gate.s_addr == rt->dest.s_addr &&
395 rt->net.s_addr == INADDR_BROADCAST)
398 else if (rt->dest.s_addr == INADDR_ANY && rt->net.s_addr == INADDR_ANY
    [all...]
if-linux.c 247 rt.dest.s_addr = INADDR_ANY;
248 rt.net.s_addr = INADDR_ANY;
249 rt.gate.s_addr = INADDR_ANY;
255 memcpy(&rt.dest.s_addr, RTA_DATA(rta),
256 sizeof(rt.dest.s_addr));
259 memcpy(&rt.gate.s_addr, RTA_DATA(rta),
260 sizeof(rt.gate.s_addr));
310 addr.s_addr = dest.s_addr = INADDR_ANY;
311 dest.s_addr = INADDR_ANY
    [all...]
arp.c 119 state->fail.s_addr = 0;
160 ina.s_addr = reply_s;
179 state->fail.s_addr = state->offer->yiaddr;
182 if (IN_LINKLOCAL(htonl(iface->addr.s_addr)) &&
183 (reply_s == iface->addr.s_addr ||
184 (reply_s == 0 && reply_t == iface->addr.s_addr)))
185 state->fail.s_addr = iface->addr.s_addr;
187 if (state->fail.s_addr) {
255 addr.s_addr = state->options->arping[state->arping_index]
    [all...]
net.c 80 uint32_t mask = htonl(address.s_addr);
100 addr->s_addr = 0;
102 memset(&addr->s_addr, 255, (size_t)ocets - 1);
103 memset((unsigned char *)&addr->s_addr + (ocets - 1),
526 addr->s_addr = a->sin_addr.s_addr;
527 net->s_addr = n->sin_addr.s_addr;
531 dst->s_addr = d->sin_addr.s_addr;
    [all...]
ipv4ll.c 94 if (iface->addr.s_addr) {
96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) {
128 if (iface->state->fail.s_addr == iface->addr.s_addr) {
bind.c 145 lease->net.s_addr = ifo->req_mask.s_addr;
153 if (ifo->req_addr.s_addr != 0)
154 lease->addr.s_addr = ifo->req_addr.s_addr;
156 lease->addr.s_addr = iface->addr.s_addr;
210 lease->server.s_addr)
dhcp.c 385 memcpy(&a->s_addr, p, sizeof(a->s_addr));
528 addr.s_addr = 0;
529 memcpy(&addr.s_addr, p, ocets);
538 memcpy(&addr.s_addr, p, 4);
584 memcpy(&rt->dest.s_addr, p, ocets);
586 rt->net.s_addr = htonl(~0U << (32 - cidr));
590 memcpy(&rt->gate.s_addr, p, 4);
624 addr.s_addr = INADDR_BROADCAST;
625 l = ((dl / sizeof(addr.s_addr)) * ((4 * 4) + 1)) + 1
    [all...]
  /bionic/libc/inet/
inet_addr.c 70 return (val.s_addr);
  /external/qemu/slirp/
bootp.c 67 paddr->s_addr = htonl(ntohl(special_addr.s_addr) | (i + START_ADDR));
74 uint32_t req_addr = ntohl(paddr->s_addr);
75 uint32_t spec_addr = ntohl(special_addr.s_addr);
102 paddr->s_addr = htonl(ntohl(special_addr.s_addr) | (i + START_ADDR));
148 if (*pmsg_type == DHCPREQUEST && !*preq_addr && bp->bp_ciaddr.s_addr) {
168 dprintf(" req_addr=%08x\n", ntohl(preq_addr->s_addr));
210 daddr.sin_addr.s_addr = 0;
221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS)
    [all...]
udp.c 170 so->so_laddr.s_addr != ip->ip_src.s_addr) {
175 tmp->so_laddr.s_addr == ip->ip_src.s_addr) {
176 tmp->so_faddr.s_addr = ip->ip_dst.s_addr;
265 DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr);
266 DEBUG_ARG("daddr = %lx", (long)daddr->sin_addr.s_addr);
317 if ((so->so_faddr.s_addr & htonl(0xffffff00)) == special_addr.s_addr) {
    [all...]
  /external/dnsmasq/src/
dhcp.c 71 saddr.sin_addr.s_addr = INADDR_ANY;
179 if (((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_addr.s_addr != INADDR_BROADCAST)
267 if (mess->giaddr.s_addr)
273 else if (mess->ciaddr.s_addr)
279 if ((!is_inform && dest.sin_addr.s_addr != mess->ciaddr.s_addr) ||
280 dest.sin_port == 0 || dest.sin_addr.s_addr == 0)
297 pkt->ipi_spec_dst.s_addr = 0;
301 dest.sin_addr.s_addr = INADDR_BROADCAST;
322 dest.sin_addr.s_addr = INADDR_BROADCAST
    [all...]
bpf.c 89 broadcast.s_addr = 0;
193 ip.ip_dst.s_addr = INADDR_BROADCAST;
198 ip.ip_dst.s_addr = mess->yiaddr.s_addr;
202 ip.ip_src.s_addr = iface_addr.s_addr;
226 sum += ip.ip_src.s_addr & 0xffff;
227 sum += (ip.ip_src.s_addr >> 16) & 0xffff;
228 sum += ip.ip_dst.s_addr & 0xffff;
229 sum += (ip.ip_dst.s_addr >> 16) & 0xffff
    [all...]
rfc2131.c 151 subnet_addr.s_addr = override.s_addr = 0;
195 mess->ciaddr.s_addr = 0;
248 if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ)))
289 if (mess->giaddr.s_addr || subnet_addr.s_addr || mess->ciaddr.s_addr)
295 if (subnet_addr.s_addr)
300 else if (mess->giaddr.s_addr)
310 if (context_tmp->netmask.s_addr &&
    [all...]
  /external/quake/quake/src/WinQuake/
net_mp.cpp 103 ((struct sockaddr_in *)&broadcastaddr)->sin_addr.s_addr = INADDR_BROADCAST;
162 address.sin_addr.s_addr = INADDR_ANY;
237 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr);
339 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr);
355 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr);
369 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr;
371 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr;
408 ((struct sockaddr_in *)addr)->sin_addr.s_addr = *(int *)hostentry->h_addr_list[0];
420 if (((struct sockaddr_in *)addr1)->sin_addr.s_addr != ((struct sockaddr_in *)addr2)->sin_addr.s_addr)
    [all...]
net_udp.cpp 101 *addr = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr;
109 *mask = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr;
179 temp.sin_addr.s_addr = INADDR_BROADCAST;
243 address.in.sin_addr.s_addr = INADDR_ANY;
318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr);
412 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr);
428 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr);
442 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr;
444 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr;
481 ((struct sockaddr_in *)addr)->sin_addr.s_addr = *(int *)hostentry->h_addr_list[0]
    [all...]
  /external/iptables/extensions/
libipt_SAME.c 57 range->min_ip = ip->s_addr;
65 range->max_ip = ip->s_addr;
116 a.s_addr = r->min_ip;
119 a.s_addr = r->max_ip;
144 a.s_addr = r->min_ip;
146 a.s_addr = r->max_ip;
  /gdk/samples/quake/jni/
net_udp.cpp 101 *addr = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr;
109 *mask = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr;
179 temp.sin_addr.s_addr = INADDR_BROADCAST;
243 address.in.sin_addr.s_addr = INADDR_ANY;
318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr);
412 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr);
428 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr);
442 a = ((struct sockaddr_in *)addr)->sin_addr.s_addr;
444 ((struct sockaddr_in *)addr)->sin_addr.s_addr = myAddr;
481 ((struct sockaddr_in *)addr)->sin_addr.s_addr = *(int *)hostentry->h_addr_list[0]
    [all...]
  /external/srtp/test/
rtpw.c 244 if (rcvr_addr.s_addr == INADDR_NONE) {
249 rcvr_addr.s_addr = inet_addr(address);
250 if (0xffffffff == rcvr_addr.s_addr) {
273 if (ADDR_IS_MULTICAST(rcvr_addr.s_addr)) {
284 mreq.imr_multiaddr.s_addr = rcvr_addr.s_addr;
285 mreq.imr_interface.s_addr = htonl(INADDR_ANY);
397 local.sin_addr.s_addr = htonl(INADDR_ANY);
426 if (ADDR_IS_MULTICAST(rcvr_addr.s_addr)) {
452 if (ADDR_IS_MULTICAST(rcvr_addr.s_addr)) {
    [all...]
  /external/dnsmasq/contrib/wrt/
dhcp_release.c 178 return (a.s_addr & mask.s_addr) == (b.s_addr & mask.s_addr);
232 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen));
233 addr.s_addr = 0;
239 if (addr.s_addr && is_same_net(addr, client, netmask))
285 lease.s_addr = inet_addr(argv[2]);
  /external/openssh/openbsd-compat/
inet_aton.c 75 return (val.s_addr);
175 addr->s_addr = htonl(val);
  /external/wpa_supplicant_6/wpa_supplicant/src/utils/
ip_addr.c 51 if (a->u.v4.s_addr != b->u.v4.s_addr)
  /external/wpa_supplicant_8/src/utils/
ip_addr.c 45 if (a->u.v4.s_addr != b->u.v4.s_addr)
  /external/openssh/
addrmatch.c 131 n->v4.s_addr = htonl((0xffffffff << (32 - l)) & 0xffffffff);
161 dst->v4.s_addr &= b->v4.s_addr;
187 if (a->v4.s_addr == b->v4.s_addr)
189 return ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr) ? 1 : -1;
244 n->v4.s_addr = ~n->v4.s_addr;
279 return (a->v4.s_addr == 0 ? 0 : -1)
    [all...]
  /external/grub/netboot/
main.c 122 etherboot_printf ("Address: %@\n", arptable[ARP_CLIENT].ipaddr.s_addr);
124 etherboot_printf ("Server: %@\n", arptable[ARP_SERVER].ipaddr.s_addr);
125 etherboot_printf ("Gateway: %@\n", arptable[ARP_GATEWAY].ipaddr.s_addr);
136 int net = ntohl (arptable[ARP_CLIENT].ipaddr.s_addr) >> 24;
156 netmask = tmp.s_addr;
182 if (IP_BROADCAST == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr)
183 || netmask == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr)
217 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr;
218 ip->dest.s_addr = destip
    [all...]

Completed in 933 milliseconds

1 2 3 4 5 6 7 8 91011