Home
last modified time | relevance | path

Searched refs:new_ra (Results 1 – 2 of 2) sorted by relevance

/net/ipv6/
Dipv6_sockglue.c64 struct ip6_ra_chain *ra, *new_ra, **rap; in ip6_ra_control() local
70 new_ra = (sel>=0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip6_ra_control()
77 kfree(new_ra); in ip6_ra_control()
89 if (new_ra == NULL) { in ip6_ra_control()
93 new_ra->sk = sk; in ip6_ra_control()
94 new_ra->sel = sel; in ip6_ra_control()
95 new_ra->next = ra; in ip6_ra_control()
96 *rap = new_ra; in ip6_ra_control()
/net/ipv4/
Dip_sockglue.c243 struct ip_ra_chain *ra, *new_ra, **rap; in ip_ra_control() local
248 new_ra = on ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip_ra_control()
255 kfree(new_ra); in ip_ra_control()
268 if (new_ra == NULL) { in ip_ra_control()
272 new_ra->sk = sk; in ip_ra_control()
273 new_ra->destructor = destructor; in ip_ra_control()
275 new_ra->next = ra; in ip_ra_control()
276 *rap = new_ra; in ip_ra_control()