Lines Matching refs:addrinfo
333 struct netlbl_domaddr4_map *addrinfo = NULL; in netlbl_cfg_cipsov4_map_add() local
359 addrinfo = kzalloc(sizeof(*addrinfo), GFP_ATOMIC); in netlbl_cfg_cipsov4_map_add()
360 if (addrinfo == NULL) in netlbl_cfg_cipsov4_map_add()
362 addrinfo->def.cipso = doi_def; in netlbl_cfg_cipsov4_map_add()
363 addrinfo->def.type = NETLBL_NLTYPE_CIPSOV4; in netlbl_cfg_cipsov4_map_add()
364 addrinfo->list.addr = addr->s_addr & mask->s_addr; in netlbl_cfg_cipsov4_map_add()
365 addrinfo->list.mask = mask->s_addr; in netlbl_cfg_cipsov4_map_add()
366 addrinfo->list.valid = 1; in netlbl_cfg_cipsov4_map_add()
367 ret_val = netlbl_af4list_add(&addrinfo->list, &addrmap->list4); in netlbl_cfg_cipsov4_map_add()
385 kfree(addrinfo); in netlbl_cfg_cipsov4_map_add()
459 struct netlbl_domaddr6_map *addrinfo = NULL; in netlbl_cfg_calipso_map_add() local
485 addrinfo = kzalloc(sizeof(*addrinfo), GFP_ATOMIC); in netlbl_cfg_calipso_map_add()
486 if (addrinfo == NULL) in netlbl_cfg_calipso_map_add()
488 addrinfo->def.calipso = doi_def; in netlbl_cfg_calipso_map_add()
489 addrinfo->def.type = NETLBL_NLTYPE_CALIPSO; in netlbl_cfg_calipso_map_add()
490 addrinfo->list.addr = *addr; in netlbl_cfg_calipso_map_add()
491 addrinfo->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_cfg_calipso_map_add()
492 addrinfo->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_cfg_calipso_map_add()
493 addrinfo->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_cfg_calipso_map_add()
494 addrinfo->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_cfg_calipso_map_add()
495 addrinfo->list.mask = *mask; in netlbl_cfg_calipso_map_add()
496 addrinfo->list.valid = 1; in netlbl_cfg_calipso_map_add()
497 ret_val = netlbl_af6list_add(&addrinfo->list, &addrmap->list6); in netlbl_cfg_calipso_map_add()
515 kfree(addrinfo); in netlbl_cfg_calipso_map_add()