]>
git.proxmox.com Git - mirror_iproute2.git/blob - tc/tc_bpf.h
2 * tc_bpf.h BPF common code
4 * This program is free software; you can distribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Authors: Daniel Borkmann <dborkman@redhat.com>
10 * Jiri Pirko <jiri@resnulli.us>
17 #include <linux/filter.h>
18 #include <linux/netlink.h>
19 #include <linux/rtnetlink.h>
21 int bpf_parse_string(char *arg
, bool from_file
, __u16
*bpf_len
,
22 char **bpf_string
, bool *need_release
,
23 const char separator
);
24 int bpf_parse_ops(int argc
, char **argv
, struct sock_filter
*bpf_ops
,
26 void bpf_print_ops(FILE *f
, struct rtattr
*bpf_ops
, __u16 len
);