Lines Matching refs:pac
68 struct ipv6_ac_socklist *pac; in ipv6_sock_ac_join() local
86 pac = sock_kmalloc(sk, sizeof(struct ipv6_ac_socklist), GFP_KERNEL); in ipv6_sock_ac_join()
87 if (!pac) in ipv6_sock_ac_join()
89 pac->acl_next = NULL; in ipv6_sock_ac_join()
90 pac->acl_addr = *addr; in ipv6_sock_ac_join()
125 pac->acl_ifindex = dev->ifindex; in ipv6_sock_ac_join()
141 pac->acl_next = np->ipv6_ac_list; in ipv6_sock_ac_join()
142 np->ipv6_ac_list = pac; in ipv6_sock_ac_join()
143 pac = NULL; in ipv6_sock_ac_join()
147 if (pac) in ipv6_sock_ac_join()
148 sock_kfree_s(sk, pac, sizeof(*pac)); in ipv6_sock_ac_join()
159 struct ipv6_ac_socklist *pac, *prev_pac; in ipv6_sock_ac_drop() local
165 for (pac = np->ipv6_ac_list; pac; pac = pac->acl_next) { in ipv6_sock_ac_drop()
166 if ((ifindex == 0 || pac->acl_ifindex == ifindex) && in ipv6_sock_ac_drop()
167 ipv6_addr_equal(&pac->acl_addr, addr)) in ipv6_sock_ac_drop()
169 prev_pac = pac; in ipv6_sock_ac_drop()
171 if (!pac) in ipv6_sock_ac_drop()
174 prev_pac->acl_next = pac->acl_next; in ipv6_sock_ac_drop()
176 np->ipv6_ac_list = pac->acl_next; in ipv6_sock_ac_drop()
178 dev = __dev_get_by_index(net, pac->acl_ifindex); in ipv6_sock_ac_drop()
180 ipv6_dev_ac_dec(dev, &pac->acl_addr); in ipv6_sock_ac_drop()
182 sock_kfree_s(sk, pac, sizeof(*pac)); in ipv6_sock_ac_drop()
190 struct ipv6_ac_socklist *pac; in __ipv6_sock_ac_close() local
195 pac = np->ipv6_ac_list; in __ipv6_sock_ac_close()
199 while (pac) { in __ipv6_sock_ac_close()
200 struct ipv6_ac_socklist *next = pac->acl_next; in __ipv6_sock_ac_close()
202 if (pac->acl_ifindex != prev_index) { in __ipv6_sock_ac_close()
203 dev = __dev_get_by_index(net, pac->acl_ifindex); in __ipv6_sock_ac_close()
204 prev_index = pac->acl_ifindex; in __ipv6_sock_ac_close()
207 ipv6_dev_ac_dec(dev, &pac->acl_addr); in __ipv6_sock_ac_close()
208 sock_kfree_s(sk, pac, sizeof(*pac)); in __ipv6_sock_ac_close()
209 pac = next; in __ipv6_sock_ac_close()