/linux/net/netfilter/ipset/ |
A D | ip_set_bitmap_ip.c | 46 u8 netmask; /* subnet netmask */ member 105 (map->netmask != 32 && in bitmap_ip_do_head() 204 x->netmask == y->netmask && in bitmap_ip_same_set() 230 map->netmask = netmask; in init_map_ip() 259 u8 netmask = 32; in bitmap_ip_create() local 290 if (netmask > HOST_MASK) in bitmap_ip_create() 293 first_ip &= ip_set_hostmask(netmask); in bitmap_ip_create() 297 if (netmask == 32) { in bitmap_ip_create() 307 netmask <= mask_bits) in bitmap_ip_create() 311 hosts = 2 << (32 - netmask - 1); in bitmap_ip_create() [all …]
|
A D | ip_set_hash_ip.c | 89 ip &= ip_set_netmask(h->netmask); in hash_ip4_kadt() 122 ip &= ip_set_hostmask(h->netmask); in hash_ip4_uadt() 148 hosts = h->netmask == 32 ? 1 : 2 << (32 - h->netmask - 1); in hash_ip4_uadt() 151 if (((u64)ip_to - ip + 1) >> (32 - h->netmask) > IPSET_MAX_RANGE) in hash_ip4_uadt() 232 hash_ip6_netmask(&e.ip, h->netmask); in hash_ip6_kadt() 271 hash_ip6_netmask(&e.ip, h->netmask); in hash_ip6_uadt()
|
A D | ip_set_hash_gen.h | 310 u8 netmask; /* netmask value for subnets to store */ member 486 x->netmask == y->netmask && in mtype_same_set() 1286 if (h->netmask != HOST_MASK && in mtype_head() 1287 nla_put_u8(skb, IPSET_ATTR_NETMASK, h->netmask)) in mtype_head() 1451 u8 netmask; in IPSET_TOKEN() local 1489 netmask = set->family == NFPROTO_IPV4 ? 32 : 128; in IPSET_TOKEN() 1491 netmask = nla_get_u8(tb[IPSET_ATTR_NETMASK]); in IPSET_TOKEN() 1493 if ((set->family == NFPROTO_IPV4 && netmask > 32) || in IPSET_TOKEN() 1494 (set->family == NFPROTO_IPV6 && netmask > 128) || in IPSET_TOKEN() 1495 netmask == 0) in IPSET_TOKEN() [all …]
|
/linux/arch/um/os-Linux/drivers/ |
A 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 …]
|
A 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()
|
/linux/net/netfilter/ |
A 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()
|
A 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()
|
/linux/arch/um/drivers/ |
A 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()
|
A 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()
|
A 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()
|
A D | net_kern.c | 829 unsigned char address[4], netmask[4]; in iter_addresses() local 835 memcpy(netmask, &in->ifa_mask, sizeof(netmask)); in iter_addresses() 836 (*cb)(address, netmask, arg); in iter_addresses()
|
/linux/arch/um/include/shared/ |
A 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);
|
/linux/Documentation/networking/ |
A D | vrf.rst | 423 netmask 255.255.255.0 428 netmask 120 433 netmask 255.255.255.0 437 netmask 120 442 netmask 255.255.255.0 446 netmask 120 451 netmask 255.255.255.0 455 netmask 120 460 netmask 255.255.255.0 464 netmask 120
|
/linux/include/uapi/linux/ |
A D | ip_vs.h | 155 __be32 netmask; /* persistent netmask */ member 217 __be32 netmask; /* persistent netmask */ member
|
A D | atmbr2684.h | 102 __be32 netmask; /* 0 = disable filter */ member
|
/linux/net/atm/ |
A D | br2684.c | 393 if (brvcc->filter.netmask == 0) in packet_fails_filter() 397 netmask) == brvcc->filter.prefix) in packet_fails_filter() 807 if (brvcc->filter.netmask != 0) in br2684_seq_show() 810 &brvcc->filter.netmask); in br2684_seq_show()
|
/linux/net/netfilter/ipvs/ |
A D | ip_vs_ctl.c | 1323 __u32 plen = (__force __u32) u->netmask; in ip_vs_add_service() 1373 svc->netmask = u->netmask; in ip_vs_add_service() 1471 __u32 plen = (__force __u32) u->netmask; in ip_vs_edit_service() 1503 svc->netmask = u->netmask; in ip_vs_edit_service() 2212 ntohl(svc->netmask)); in ip_vs_info_seq_show() 2442 usvc->netmask = usvc_compat->netmask; in ip_vs_copy_usvc_compat() 2622 dst->netmask = src->netmask; in ip_vs_copy_service() 3114 nla_put_be32(skb, IPVS_SVC_ATTR_NETMASK, svc->netmask)) in ip_vs_genl_fill_service() 3279 usvc->netmask = nla_get_be32(nla_netmask); in ip_vs_genl_parse_service()
|
A D | ip_vs_core.c | 281 (__force __u32) svc->netmask); in ip_vs_sched_persist() 284 snet.ip = src_addr->ip & svc->netmask; in ip_vs_sched_persist() 1161 (__force __u32)svc->netmask); in ip_vs_new_conn_out() 1164 snet.ip = caddr->ip & svc->netmask; in ip_vs_new_conn_out()
|
/linux/Documentation/admin-guide/nfs/ |
A D | nfsroot.rst | 88 ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>:<nt… 127 <netmask> Netmask for local network interface. 128 If unspecified the netmask is derived from the client IP address
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | cpl5_cmd.h | 601 u32 netmask; member
|
/linux/fs/afs/ |
A D | cmservice.c | 549 __be32 netmask[32]; in SRXAFSCB_TellMeAboutYourself() member
|
/linux/include/net/ |
A D | ip_vs.h | 582 __be32 netmask; /* persistent netmask or plen */ member 624 __be32 netmask; /* grouping granularity, mask/plen */ member
|
/linux/Documentation/networking/device_drivers/ethernet/dlink/ |
A D | dl2k.rst | 45 3. ifconfig eth0 up 10.xxx.xxx.xxx netmask 255.0.0.0
|
/linux/Documentation/virt/uml/ |
A D | user_mode_linux_howto_v2.rst | 391 netmask 255.255.255.252 401 If the UML guest is configured with 192.168.4.2 and netmask 255.255.255.0 468 netmask 255.255.255.0 539 netmask 255.255.255.0
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | t3_cpl.h | 1376 __be32 netmask; member
|