Searched refs:cidr (Results 1 – 11 of 11) sorted by relevance
/linux-2.6.39/net/netfilter/ipset/ |
D | ip_set_hash_net.c | 47 u8 cidr; member 55 u8 cidr; member 63 return ip1->ip == ip2->ip && ip1->cidr == ip2->cidr; in hash_net4_data_equal() 69 return elem->cidr == 0; in hash_net4_data_isnull() 77 dst->cidr = src->cidr; in hash_net4_data_copy() 81 hash_net4_data_netmask(struct hash_net4_elem *elem, u8 cidr) in hash_net4_data_netmask() argument 83 elem->ip &= ip_set_netmask(cidr); in hash_net4_data_netmask() 84 elem->cidr = cidr; in hash_net4_data_netmask() 91 elem->cidr = 0; in hash_net4_data_zero_out() 98 NLA_PUT_U8(skb, IPSET_ATTR_CIDR, data->cidr); in hash_net4_data_list() [all …]
|
D | ip_set_hash_netport.c | 48 u8 cidr; member 56 u8 cidr; member 67 ip1->cidr == ip2->cidr; in hash_netport4_data_equal() 83 dst->cidr = src->cidr; in hash_netport4_data_copy() 87 hash_netport4_data_netmask(struct hash_netport4_elem *elem, u8 cidr) in hash_netport4_data_netmask() argument 89 elem->ip &= ip_set_netmask(cidr); in hash_netport4_data_netmask() 90 elem->cidr = cidr; in hash_netport4_data_netmask() 105 NLA_PUT_U8(skb, IPSET_ATTR_CIDR, data->cidr); in hash_netport4_data_list() 122 NLA_PUT_U8(skb, IPSET_ATTR_CIDR, data->cidr); in hash_netport4_data_tlist() 147 .cidr = h->nets[0].cidr || HOST_MASK }; in hash_netport4_kadt() [all …]
|
D | ip_set_hash_ipportnet.c | 49 u8 cidr; member 58 u8 cidr; member 69 ip1->cidr == ip2->cidr && in hash_ipportnet4_data_equal() 88 hash_ipportnet4_data_netmask(struct hash_ipportnet4_elem *elem, u8 cidr) in hash_ipportnet4_data_netmask() argument 90 elem->ip2 &= ip_set_netmask(cidr); in hash_ipportnet4_data_netmask() 91 elem->cidr = cidr; in hash_ipportnet4_data_netmask() 107 NLA_PUT_U8(skb, IPSET_ATTR_CIDR2, data->cidr); in hash_ipportnet4_data_list() 125 NLA_PUT_U8(skb, IPSET_ATTR_CIDR2, data->cidr); in hash_ipportnet4_data_tlist() 150 { .cidr = h->nets[0].cidr || HOST_MASK }; in hash_ipportnet4_kadt() 152 if (data.cidr == 0) in hash_ipportnet4_kadt() [all …]
|
D | ip_set_bitmap_ip.c | 282 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt() local 284 if (cidr > 32) in bitmap_ip_uadt() 286 ip &= ip_set_hostmask(cidr); in bitmap_ip_uadt() 287 ip_to = ip | ~ip_set_hostmask(cidr); in bitmap_ip_uadt() 477 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_create() local 479 if (cidr >= 32) in bitmap_ip_create() 481 last_ip = first_ip | ~ip_set_hostmask(cidr); in bitmap_ip_create()
|
D | ip_set_hash_ip.c | 170 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ip4_uadt() local 172 if (cidr > 32) in hash_ip4_uadt() 174 ip &= ip_set_hostmask(cidr); in hash_ip4_uadt() 175 ip_to = ip | ~ip_set_hostmask(cidr); in hash_ip4_uadt()
|
D | ip_set_hash_ipport.c | 207 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport4_uadt() local 209 if (cidr > 32) in hash_ipport4_uadt() 211 ip &= ip_set_hostmask(cidr); in hash_ipport4_uadt() 212 ip_to = ip | ~ip_set_hostmask(cidr); in hash_ipport4_uadt()
|
D | ip_set_hash_ipportip.c | 215 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip4_uadt() local 217 if (cidr > 32) in hash_ipportip4_uadt() 219 ip &= ip_set_hostmask(cidr); in hash_ipportip4_uadt() 220 ip_to = ip | ~ip_set_hostmask(cidr); in hash_ipportip4_uadt()
|
D | ip_set_bitmap_ipmac.c | 576 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ipmac_create() local 578 if (cidr >= 32) in bitmap_ipmac_create() 580 last_ip = first_ip | ~ip_set_hostmask(cidr); in bitmap_ipmac_create()
|
/linux-2.6.39/include/linux/netfilter/ipset/ |
D | ip_set_ahash.h | 45 u8 cidr; /* the different cidr values in the set */ member 85 add_cidr(struct ip_set_hash *h, u8 cidr, u8 host_mask) in add_cidr() argument 89 ++h->nets[cidr-1].nets; in add_cidr() 91 pr_debug("add_cidr added %u: %u\n", cidr, h->nets[cidr-1].nets); in add_cidr() 93 if (h->nets[cidr-1].nets > 1) in add_cidr() 97 for (i = 0; i < host_mask && h->nets[i].cidr; i++) { in add_cidr() 99 if (h->nets[i].cidr < cidr) in add_cidr() 100 swap(h->nets[i].cidr, cidr); in add_cidr() 103 h->nets[i].cidr = cidr; in add_cidr() 107 del_cidr(struct ip_set_hash *h, u8 cidr, u8 host_mask) in del_cidr() argument [all …]
|
/linux-2.6.39/arch/arm/mach-at91/ |
D | at91sam9rl.c | 257 unsigned long cidr, sram_size; in at91sam9rl_initialize() local 262 cidr = at91_sys_read(AT91_DBGU_CIDR); in at91sam9rl_initialize() 264 switch (cidr & AT91_CIDR_SRAMSIZ) { in at91sam9rl_initialize()
|
D | at91sam9260.c | 294 unsigned long cidr, sram_size; in at91sam9xe_initialize() local 296 cidr = at91_sys_read(AT91_DBGU_CIDR); in at91sam9xe_initialize() 298 switch (cidr & AT91_CIDR_SRAMSIZ) { in at91sam9xe_initialize()
|