Home
last modified time | relevance | path

Searched refs:fprog (Results 1 – 4 of 4) sorted by relevance

/drivers/net/team/
Dteam_mode_loadbalance.c247 struct sock_fprog_kern *fprog; in __fprog_create() local
252 fprog = kmalloc(sizeof(*fprog), GFP_KERNEL); in __fprog_create()
253 if (!fprog) in __fprog_create()
255 fprog->filter = kmemdup(filter, data_len, GFP_KERNEL); in __fprog_create()
256 if (!fprog->filter) { in __fprog_create()
257 kfree(fprog); in __fprog_create()
260 fprog->len = data_len / sizeof(struct sock_filter); in __fprog_create()
261 *pfprog = fprog; in __fprog_create()
265 static void __fprog_destroy(struct sock_fprog_kern *fprog) in __fprog_destroy() argument
267 kfree(fprog->filter); in __fprog_destroy()
[all …]
/drivers/isdn/i4l/
Disdn_ppp.c635 struct sock_fprog_kern fprog; in isdn_ppp_ioctl() local
642 fprog.len = len; in isdn_ppp_ioctl()
643 fprog.filter = code; in isdn_ppp_ioctl()
649 if (fprog.filter != NULL) in isdn_ppp_ioctl()
650 err = bpf_prog_create(&is->pass_filter, &fprog); in isdn_ppp_ioctl()
659 struct sock_fprog_kern fprog; in isdn_ppp_ioctl() local
666 fprog.len = len; in isdn_ppp_ioctl()
667 fprog.filter = code; in isdn_ppp_ioctl()
673 if (fprog.filter != NULL) in isdn_ppp_ioctl()
674 err = bpf_prog_create(&is->active_filter, &fprog); in isdn_ppp_ioctl()
/drivers/net/
Dtun.c183 struct sock_fprog fprog; member
558 err = sk_attach_filter(&tun->fprog, tfile->socket.sk); in tun_attach()
1819 ret = sk_attach_filter(&tun->fprog, tfile->socket.sk); in tun_attach_filter()
2100 if (copy_from_user(&tun->fprog, argp, sizeof(tun->fprog))) in __tun_chr_ioctl()
2120 if (copy_to_user(argp, &tun->fprog, sizeof(tun->fprog))) in __tun_chr_ioctl()
/drivers/net/ppp/
Dppp_generic.c758 struct sock_fprog_kern fprog = { in ppp_ioctl() local
764 if (fprog.filter) in ppp_ioctl()
765 err = bpf_prog_create(&pass_filter, &fprog); in ppp_ioctl()
784 struct sock_fprog_kern fprog = { in ppp_ioctl() local
790 if (fprog.filter) in ppp_ioctl()
791 err = bpf_prog_create(&active_filter, &fprog); in ppp_ioctl()