/kernel/linux/linux-5.10/net/netfilter/ipset/ |
D | ip_set_bitmap_ip.c | 46 u8 netmask; /* subnet netmask */ member 61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id() 105 (map->netmask != 32 && in bitmap_ip_do_head() 106 nla_put_u8(skb, IPSET_ATTR_NETMASK, map->netmask)); in bitmap_ip_do_head() 204 x->netmask == y->netmask && in bitmap_ip_same_set() 221 u32 elements, u32 hosts, u8 netmask) in init_map_ip() argument 230 map->netmask = netmask; in init_map_ip() 259 u8 netmask = 32; in bitmap_ip_create() local 288 netmask = nla_get_u8(tb[IPSET_ATTR_NETMASK]); in bitmap_ip_create() 290 if (netmask > HOST_MASK) in bitmap_ip_create() [all …]
|
D | ip_set_hash_ip.c | 88 ip &= ip_set_netmask(h->netmask); in hash_ip4_kadt() 121 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt() 147 hosts = h->netmask == 32 ? 1 : 2 << (32 - h->netmask - 1); in hash_ip4_uadt() 229 hash_ip6_netmask(&e.ip, h->netmask); in hash_ip6_kadt() 268 hash_ip6_netmask(&e.ip, h->netmask); in hash_ip6_uadt()
|
D | ip_set_hash_gen.h | 314 u8 netmask; /* netmask value for subnets to store */ member 490 x->netmask == y->netmask && in mtype_same_set() 1290 if (h->netmask != HOST_MASK && in mtype_head() 1291 nla_put_u8(skb, IPSET_ATTR_NETMASK, h->netmask)) in mtype_head() 1450 u8 netmask; in IPSET_TOKEN() local 1488 netmask = set->family == NFPROTO_IPV4 ? 32 : 128; in IPSET_TOKEN() 1490 netmask = nla_get_u8(tb[IPSET_ATTR_NETMASK]); in IPSET_TOKEN() 1492 if ((set->family == NFPROTO_IPV4 && netmask > 32) || in IPSET_TOKEN() 1493 (set->family == NFPROTO_IPV6 && netmask > 128) || in IPSET_TOKEN() 1494 netmask == 0) in IPSET_TOKEN() [all …]
|
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/ |
D | ethertap_user.c | 33 unsigned char netmask[4]; member 36 static void etap_change(int op, unsigned char *addr, unsigned char *netmask, in etap_change() argument 45 memcpy(change.netmask, netmask, sizeof(change.netmask)); in etap_change() 64 static void etap_open_addr(unsigned char *addr, unsigned char *netmask, in etap_open_addr() argument 67 etap_change(ADD_ADDR, addr, netmask, *((int *) arg)); in etap_open_addr() 70 static void etap_close_addr(unsigned char *addr, unsigned char *netmask, in etap_close_addr() argument 73 etap_change(DEL_ADDR, addr, netmask, *((int *) arg)); in etap_close_addr() 217 static void etap_add_addr(unsigned char *addr, unsigned char *netmask, in etap_add_addr() argument 225 etap_open_addr(addr, netmask, &pri->control_fd); in etap_add_addr() 228 static void etap_del_addr(unsigned char *addr, unsigned char *netmask, in etap_del_addr() argument [all …]
|
D | tuntap_user.c | 28 static void tuntap_add_addr(unsigned char *addr, unsigned char *netmask, in tuntap_add_addr() argument 36 open_addr(addr, netmask, pri->dev_name); in tuntap_add_addr() 39 static void tuntap_del_addr(unsigned char *addr, unsigned char *netmask, in tuntap_del_addr() argument 46 close_addr(addr, netmask, pri->dev_name); in tuntap_del_addr()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_NETMAP.c | 25 union nf_inet_addr new_addr, netmask; in netmap_tg6() local 30 netmask.ip6[i] = ~(range->min_addr.ip6[i] ^ in netmap_tg6() 40 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6() 42 netmask.ip6[i]; in netmap_tg6() 73 __be32 new_ip, netmask; in netmap_tg4() local 83 netmask = ~(mr->range[0].min_ip ^ mr->range[0].max_ip); in netmap_tg4() 87 new_ip = ip_hdr(skb)->daddr & ~netmask; in netmap_tg4() 89 new_ip = ip_hdr(skb)->saddr & ~netmask; in netmap_tg4() 90 new_ip |= mr->range[0].min_ip & netmask; in netmap_tg4()
|
D | nft_nat.c | 69 __be32 netmask; in nft_nat_setup_netmap() local 94 netmask = ~(range->min_addr.ip6[i] ^ range->max_addr.ip6[i]); in nft_nat_setup_netmap() 95 new_addr.ip6[i] &= ~netmask; in nft_nat_setup_netmap() 96 new_addr.ip6[i] |= range->min_addr.ip6[i] & netmask; in nft_nat_setup_netmap()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | net_user.c | 207 unsigned char *netmask) in change() argument 219 sprintf(netmask_buf, "%d.%d.%d.%d", netmask[0], netmask[1], in change() 220 netmask[2], netmask[3]); in change() 240 void open_addr(unsigned char *addr, unsigned char *netmask, void *arg) in open_addr() argument 242 change(arg, "add", addr, netmask); in open_addr() 245 void close_addr(unsigned char *addr, unsigned char *netmask, void *arg) in close_addr() argument 247 change(arg, "del", addr, netmask); in close_addr()
|
D | pcap_user.c | 38 __u32 netmask; in pcap_user_open() local 45 err = dev_netmask(pri->dev, &netmask); in pcap_user_open() 60 pri->filter, pri->optimize, netmask); in pcap_user_open()
|
D | slip_user.c | 223 static void slip_add_addr(unsigned char *addr, unsigned char *netmask, in slip_add_addr() argument 230 open_addr(addr, netmask, pri->name); in slip_add_addr() 233 static void slip_del_addr(unsigned char *addr, unsigned char *netmask, in slip_del_addr() argument 240 close_addr(addr, netmask, pri->name); in slip_del_addr()
|
/kernel/uniproton/src/net/lwip-2.1/enhancement/src/ |
D | lwip_ifaddrs.c | 39 } addr, netmask, dstaddr; member 82 ifaddr->ifa_netmask = &ifStorage->netmask.sa; in OsNewIfaddrsStorage() 150 addrIn->sin_addr.s_addr = ((ip4_addr_t *)&netif->netmask)->addr; in OsGetIpv4Ifaddr() 154 …sin_addr.s_addr = (((ip4_addr_t *)&netif->ip_addr)->addr & ((ip4_addr_t *)&netif->netmask)->addr) | in OsGetIpv4Ifaddr() 155 ~((ip4_addr_t *)&netif->netmask)->addr; in OsGetIpv4Ifaddr()
|
/kernel/liteos_m/components/net/lwip-2.1/enhancement/src/ |
D | lwip_ifaddrs.c | 54 } addr, netmask, dstaddr; member 94 ifaddr->ifa_netmask = &if_storage->netmask.sa; in new_ifaddrs_storage() 164 addr_in->sin_addr.s_addr = ((ip4_addr_t *)&netif->netmask)->addr; in get_ipv4_ifaddr() 168 …sin_addr.s_addr = (((ip4_addr_t *)&netif->ip_addr)->addr & ((ip4_addr_t *)&netif->netmask)->addr) | in get_ipv4_ifaddr() 169 ~((ip4_addr_t *)&netif->netmask)->addr; in get_ipv4_ifaddr()
|
/kernel/linux/linux-5.10/arch/um/include/shared/ |
D | net_user.h | 46 extern void open_addr(unsigned char *addr, unsigned char *netmask, void *arg); 47 extern void close_addr(unsigned char *addr, unsigned char *netmask, void *arg);
|
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
D | sockets.c | 441 if (ip_addr_netcmp(&rtgw_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask))) { 617 if (ip_addr_netcmp(&taget_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask)) == 0) { 640 if (ip_addr_cmp(&netif->netmask, &loc_netif->netmask) && 642 ip_2_ip4(&netif->netmask))) { 718 ip_addr_set_zero(&netif->netmask); 749 sock_in->sin_addr.s_addr = ip_2_ip4(&netif->netmask)->addr; 788 if (ip_addr_cmp(&netif->netmask, &taget_addr)) { 811 if (ip_addr_cmp(&loc_netif->netmask, &taget_addr) && 813 &netif->ip_addr, ip_2_ip4(&loc_netif->netmask))) { 1249 if (ip4_addr_isany_val(*(ip_2_ip4(&netif->netmask)))) { [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | vrf.rst | 410 netmask 255.255.255.0 415 netmask 120 420 netmask 255.255.255.0 424 netmask 120 429 netmask 255.255.255.0 433 netmask 120 438 netmask 255.255.255.0 442 netmask 120 447 netmask 255.255.255.0 451 netmask 120
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | ip_vs.h | 155 __be32 netmask; /* persistent netmask */ member 217 __be32 netmask; /* persistent netmask */ member
|
D | atmbr2684.h | 102 __be32 netmask; /* 0 = disable filter */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | ip_vs.h | 105 __be32 netmask; member 140 __be32 netmask; member
|
D | atmbr2684.h | 71 __be32 netmask; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | ip_vs.h | 98 __be32 netmask; member 141 __be32 netmask; member
|
D | atmbr2684.h | 59 __be32 netmask; member
|
/kernel/liteos_a/testsuites/unittest/container/ |
D | It_container_test.cpp | 154 static int TryResetNetAddr(const char *ifname, const char *ip, const char *netmask, const char *gw) in TryResetNetAddr() argument 170 inet_pton(AF_INET, netmask, ifr.ifr_addr.sa_data + OFFSET); in TryResetNetAddr() 202 int NetContainerResetNetAddr(const char *ifname, const char *ip, const char *netmask, const char *g… in NetContainerResetNetAddr() argument 208 ret = TryResetNetAddr(ifname, ip, netmask, gw); in NetContainerResetNetAddr()
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_011.c | 295 ip4_addr_t gw, ipaddr, netmask; in CreateBtNetIf() local 298 IP4_ADDR(&netmask, 255, 255, 255, 255); in CreateBtNetIf() 300 …if ((ret = netifapi_netif_add(btNetif, &ipaddr, &netmask, &gw, btNetif, driverif_init, tcpip_input… in CreateBtNetIf()
|
/kernel/liteos_a/net/lwip-2.1/enhancement/src/ |
D | dhcps.c | 395 …dhcp_common_option_long(srvr_msg, ntohl(ip4_addr_get_u32(ip_2_ip4(&netif->netmask))), &options_len… in handle_discover() 592 dhcp_common_option_long(srvr_msg, ntohl(ip_2_ip4(&netif->netmask)->addr), &options_len); in handle_request() 904 …dhcps->start_addr.addr = ntohl(ip_2_ip4(&netif->ip_addr)->addr & ip_2_ip4(&netif->netmask)->addr) … in dhcps_start() 905 …dhcps->end_addr.addr = ntohl(ip_2_ip4(&netif->ip_addr)->addr | (~ip_2_ip4(&netif->netmask)->addr))… in dhcps_start() 918 … if (!ip4_addr_netcmp((&address_in_hton), ip_2_ip4(&netif->ip_addr), ip_2_ip4(&netif->netmask)) || in dhcps_start() 928 … if (!ip4_addr_netcmp((&address_in_hton), ip_2_ip4(&netif->ip_addr), ip_2_ip4(&netif->netmask)) || in dhcps_start() 930 …s->end_addr.addr = ntohl(ip_2_ip4(&netif->ip_addr)->addr | (~ip_2_ip4(&netif->netmask)->addr)) - 1; in dhcps_start()
|
D | api_shell.c | 241 ip_addr_t netmask; member 298 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "netmask:%s ", ipaddr_ntoa(&netif->netmask)); 496 ip_addr_t netmask; local 538 if (!ip_addr_netcmp_val(&ip_addr, &netif->ip_addr, ip_2_ip4(&netif->netmask))) { 561 … if (IP_IS_V4_VAL(ifconfig_cmd->ip_addr) && ip_addr_cmp(&netif->netmask, &loc_netif->netmask) && 562 ip_addr_netcmp_val(&loc_netif->ip_addr, &ip_addr, ip_2_ip4(&netif->netmask))) { 591 ip_addr_set_val(&netmask, &(ifconfig_cmd->netmask)); 593 if (!ip_addr_netmask_valid(ip_2_ip4(&netmask))) { 603 if (netif_ip4_netmask(netif)->addr != ip_2_ip4(&netmask)->addr) { 615 if (ip_addr_cmp(&loc_netif->netmask, &netmask) && [all …]
|