Commit b69fe977 authored by Brenden Blanco's avatar Brenden Blanco Committed by GitHub

Merge pull request #1018 from GabrielGanne/python-xdp-return-values

add XDP return values to python interface
parents d7a5ff09 78b05e07
...@@ -118,6 +118,12 @@ class BPF(object): ...@@ -118,6 +118,12 @@ class BPF(object):
XDP = 6 XDP = 6
PERF_EVENT = 7 PERF_EVENT = 7
# from xdp_action uapi/linux/bpf.h
XDP_ABORTED = 0
XDP_DROP = 1
XDP_PASS = 2
XDP_TX = 3
_probe_repl = re.compile("[^a-zA-Z0-9_]") _probe_repl = re.compile("[^a-zA-Z0-9_]")
_sym_caches = {} _sym_caches = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment