Home
last modified time | relevance | path

Searched refs:netmask (Results 1 – 25 of 29) sorted by relevance

12

/linux/net/netfilter/ipset/
A Dip_set_bitmap_ip.c46 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 Dip_set_hash_ip.c89 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 Dip_set_hash_gen.h310 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 Dethertap_user.c33 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 Dtuntap_user.c28 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 Dxt_NETMAP.c25 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 Dnft_nat.c69 __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 Dnet_user.c207 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 Dslip_user.c223 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 Dpcap_user.c38 __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 Dnet_kern.c829 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 Dnet_user.h46 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 Dvrf.rst423 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 Dip_vs.h155 __be32 netmask; /* persistent netmask */ member
217 __be32 netmask; /* persistent netmask */ member
A Datmbr2684.h102 __be32 netmask; /* 0 = disable filter */ member
/linux/net/atm/
A Dbr2684.c393 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 Dip_vs_ctl.c1323 __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 Dip_vs_core.c281 (__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 Dnfsroot.rst88 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 Dcpl5_cmd.h601 u32 netmask; member
/linux/fs/afs/
A Dcmservice.c549 __be32 netmask[32]; in SRXAFSCB_TellMeAboutYourself() member
/linux/include/net/
A Dip_vs.h582 __be32 netmask; /* persistent netmask or plen */ member
624 __be32 netmask; /* grouping granularity, mask/plen */ member
/linux/Documentation/networking/device_drivers/ethernet/dlink/
A Ddl2k.rst45 3. ifconfig eth0 up 10.xxx.xxx.xxx netmask 255.0.0.0
/linux/Documentation/virt/uml/
A Duser_mode_linux_howto_v2.rst391 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 Dt3_cpl.h1376 __be32 netmask; member

Completed in 69 milliseconds

12