• Home
  • Raw
  • Download

Lines Matching refs:map

151 		struct netlbl_domaddr4_map *map;  in netlbl_mgmt_add_common()  local
174 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
175 if (map == NULL) { in netlbl_mgmt_add_common()
179 pmap = map; in netlbl_mgmt_add_common()
180 map->list.addr = addr->s_addr & mask->s_addr; in netlbl_mgmt_add_common()
181 map->list.mask = mask->s_addr; in netlbl_mgmt_add_common()
182 map->list.valid = 1; in netlbl_mgmt_add_common()
183 map->def.type = entry->def.type; in netlbl_mgmt_add_common()
185 map->def.cipso = cipsov4; in netlbl_mgmt_add_common()
187 ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); in netlbl_mgmt_add_common()
198 struct netlbl_domaddr6_map *map; in netlbl_mgmt_add_common() local
221 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
222 if (map == NULL) { in netlbl_mgmt_add_common()
226 pmap = map; in netlbl_mgmt_add_common()
227 map->list.addr = *addr; in netlbl_mgmt_add_common()
228 map->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_mgmt_add_common()
229 map->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_mgmt_add_common()
230 map->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_mgmt_add_common()
231 map->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_mgmt_add_common()
232 map->list.mask = *mask; in netlbl_mgmt_add_common()
233 map->list.valid = 1; in netlbl_mgmt_add_common()
234 map->def.type = entry->def.type; in netlbl_mgmt_add_common()
236 map->def.calipso = calipso; in netlbl_mgmt_add_common()
238 ret_val = netlbl_af6list_add(&map->list, &addrmap->list6); in netlbl_mgmt_add_common()