/external/iptables/extensions/ |
D | libipt_NETMAP.c | 33 netmask2bits(uint32_t netmask) in netmask2bits() argument 38 netmask = ntohl(netmask); in netmask2bits() 39 for (bits = 0, bm = 0x80000000; netmask & bm; netmask <<= 1) in netmask2bits() 41 if (netmask) in netmask2bits()
|
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/ipaddr/ |
D | ipaddr.py | 583 if self.netmask != other.netmask: 584 return self.netmask < other.netmask 596 if self.netmask != other.netmask: 597 return self.netmask > other.netmask 616 and int(self.netmask) == int(other.netmask)) 633 return hash(int(self.network) ^ int(self.netmask)) 657 x = IPAddress(self._ip & int(self.netmask), version=self._version) 673 x = IPAddress(int(self.netmask) ^ self._ALL_ONES, 684 return '%s/%s' % (str(self.ip), str(self.netmask)) 825 if self.netmask < other.netmask: [all …]
|
/external/toybox/toys/pending/ |
D | route.c | 166 static void is_prefix(char **tip, char **netmask, struct rtentry *rt) in is_prefix() argument 177 } else *netmask = "default"; //default netmask. in is_prefix() 184 static void get_next_params(char **argv, struct rtentry *rt, char **netmask) in get_next_params() argument 203 *netmask = *argv; in get_next_params() 204 if (get_hostname(*netmask, (struct sockaddr_in *) &sock) < 0) in get_next_params() 205 perror_exit("resolving '%s'", *netmask); in get_next_params() 237 static void verify_netmask(struct rtentry *rt, char *netmask) in verify_netmask() argument 246 if (addr_mask & (addr_mask + 1)) perror_exit("wrong netmask '%s'", netmask); in verify_netmask() 256 char *netmask = NULL, *targetip; in setroute() local 268 is_prefix((char **)&targetip, (char **)&netmask, &rt); in setroute() [all …]
|
D | ip.c | 376 static int get_nmask_prefix(uint32_t *netmask, uint8_t af, in get_nmask_prefix() argument 384 *netmask = (af == AF_INET6) ? 128 : 32; // set default netmask in get_nmask_prefix() 387 if (!ptr || ptr == name || *ptr || !plen || plen > *netmask) { in get_nmask_prefix() 396 *netmask = plen; in get_nmask_prefix() 406 static void parse_prefix(uint32_t *addr, uint32_t *netmask, uint8_t *len, in parse_prefix() argument 416 if (get_nmask_prefix(netmask, af, slash+1, family)) in parse_prefix() 420 else if (af == AF_INET && *addr) *netmask = 32; in parse_prefix() 421 else if (af == AF_INET6 && (*addr || *(addr+3))) *netmask = 128; in parse_prefix() 1092 uint32_t addr[4] = {0,}, netmask = 0; in ipaddrupdate() local 1094 parse_prefix(addr, &netmask, &len, *argv, in ipaddrupdate() [all …]
|
/external/libpcap/ |
D | inet.c | 602 struct sockaddr *netmask, size_t netmask_size, in add_addr_to_iflist() argument 643 return (add_addr_to_dev(curdev, addr, addr_size, netmask, in add_addr_to_iflist() 657 struct sockaddr *netmask, size_t netmask_size, in add_addr_to_dev() argument 683 if (netmask != NULL) { in add_addr_to_dev() 684 curaddr->netmask = dup_sockaddr(netmask, netmask_size); in add_addr_to_dev() 685 if (curaddr->netmask == NULL) { in add_addr_to_dev() 694 curaddr->netmask = NULL; in add_addr_to_dev() 701 if (curaddr->netmask != NULL) in add_addr_to_dev() 702 free(curaddr->netmask); in add_addr_to_dev() 718 if (curaddr->netmask != NULL) in add_addr_to_dev() [all …]
|
D | fad-getad.c | 151 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 186 netmask = ifa->ifa_netmask; in pcap_findalldevs_interfaces() 190 netmask = NULL; in pcap_findalldevs_interfaces() 258 ifa->ifa_flags, addr, addr_size, netmask, addr_size, in pcap_findalldevs_interfaces()
|
D | fad-gifc.c | 148 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 268 netmask = NULL; in pcap_findalldevs_interfaces() 280 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces() 281 netmask_size = SA_LEN(netmask); in pcap_findalldevs_interfaces() 395 SA_LEN(&ifrp->ifr_addr), netmask, netmask_size, in pcap_findalldevs_interfaces()
|
D | fad-glifc.c | 91 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 234 netmask = NULL; in pcap_findalldevs_interfaces() 245 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr; in pcap_findalldevs_interfaces() 346 netmask, sizeof (struct sockaddr_storage), in pcap_findalldevs_interfaces()
|
D | pcap-dos.c | 496 bpf_u_int32 *netmask, char *errbuf) in pcap_lookupnet() argument 505 *netmask = _w32_sin_mask; in pcap_lookupnet() 506 *localnet = my_ip_addr & *netmask; in pcap_lookupnet() 509 if (IN_CLASSA(*netmask)) in pcap_lookupnet() 511 else if (IN_CLASSB(*netmask)) in pcap_lookupnet() 513 else if (IN_CLASSC(*netmask)) in pcap_lookupnet() 517 sprintf (errbuf, "inet class for 0x%lx unknown", *netmask); in pcap_lookupnet() 535 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs() local 557 netmask = (struct sockaddr*) &sa_ll_1; in pcap_findalldevs() 569 netmask, addr_size, broadaddr, addr_size, in pcap_findalldevs()
|
/external/dnsmasq/src/ |
D | dhcp.c | 28 struct in_addr netmask, struct in_addr broadcast, void *vparam); 368 struct in_addr netmask, struct in_addr broadcast, void *vparam) in complete_context() argument 376 (is_same_net(local, context->start, netmask) || in complete_context() 377 is_same_net(local, context->end, netmask))) in complete_context() 379 if (context->netmask.s_addr != netmask.s_addr && in complete_context() 380 !(is_same_net(local, context->start, netmask) && in complete_context() 381 is_same_net(local, context->end, netmask))) in complete_context() 386 daemon->dhcp_buff, daemon->dhcp_buff2, inet_ntoa(netmask)); in complete_context() 388 context->netmask = netmask; in complete_context() 391 if (context->netmask.s_addr) in complete_context() [all …]
|
D | bpf.c | 88 struct in_addr addr, netmask, broadcast; in iface_enumerate() local 93 netmask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate() 98 netmask, broadcast, in iface_enumerate()
|
D | netlink.c | 194 struct in_addr netmask, addr, broadcast; in iface_enumerate() local 196 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); in iface_enumerate() 211 if (!((*ipv4_callback)(addr, ifa->ifa_index, netmask, broadcast, parm))) in iface_enumerate()
|
D | forward.c | 580 struct in_addr netmask, dst_addr_4; in receive_query() local 609 netmask = listen->iface->netmask; in receive_query() 614 netmask.s_addr = 0; in receive_query() 695 netmask = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; in receive_query() 715 dst_addr_4, netmask, now); in receive_query() 734 struct in_addr local_addr, struct in_addr netmask) in tcp_request() argument 782 local_addr, netmask, now); in tcp_request()
|
/external/libpcap/tests/ |
D | findalldevstest.c | 81 if (a->netmask) in ifprint() 83 inet_ntoa(((struct sockaddr_in *)(a->netmask))->sin_addr)); in ifprint() 99 if (a->netmask) in ifprint() 102 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr, in ifprint()
|
D | capturetest.c | 66 bpf_u_int32 localnet, netmask; in main() local 157 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 159 netmask = 0; in main() 164 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
|
D | selpolltest.c | 58 bpf_u_int32 localnet, netmask; in main() local 126 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 128 netmask = 0; in main() 133 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
|
D | filtertest.c | 192 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main() local 241 netmask = addr; in main() 284 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
|
/external/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 25 (ipaddr netmask 192.168.1.1) 29 ;(nodecon ip_v4 netmask con)
|
D | mls_policy.cil | 49 (ipaddr netmask 192.168.1.1) 53 (nodecon ip_v4 netmask con)
|
/external/dnsmasq/contrib/wrt/ |
D | dhcp_release.c | 230 struct in_addr netmask, addr; in find_interface() local 232 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); in find_interface() 239 if (addr.s_addr && is_same_net(addr, client, netmask)) in find_interface()
|
/external/kernel-headers/original/uapi/linux/ |
D | ip_vs.h | 141 __be32 netmask; /* persistent netmask */ member 203 __be32 netmask; /* persistent netmask */ member
|
D | atmbr2684.h | 101 __be32 netmask; /* 0 = disable filter */ member
|
/external/avahi/avahi-autoipd/ |
D | avahi-autoipd.action.linux | 65 ifconfig "$2:avahi" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 up
|
/external/autotest/client/cros/cellular/ |
D | base_station_interface.py | 29 def SetBsNetmaskV4(self, netmask): argument
|
/external/iputils/ |
D | rdisc.c | 74 struct in_addr netmask; member 631 if ((sin->sin_addr.s_addr & ifp->netmask.s_addr) == in advertise() 632 (ifp->address.s_addr & ifp->netmask.s_addr)) { in advertise() 1173 interfaces[i].netmask.s_addr = (__u32)0xffffffff; in initifs() 1200 interfaces[i].netmask = sin->sin_addr; in initifs() 1290 if ((in.s_addr & interfaces[i].netmask.s_addr ) == in is_directly_connected() 1291 (interfaces[i].remoteaddr.s_addr & interfaces[i].netmask.s_addr)) in is_directly_connected()
|