Changing BPF_PROG_TYPE_UNSPEC constant in favor of a literal 0 and a comment.

This commit is contained in:
Gustavo Moreira
2021-12-14 15:37:55 +11:00
parent 6970776c4c
commit 86676cf4e8
@@ -183,8 +183,8 @@ class SockHandlers(interfaces.configuration.VersionableInterface):
if not bpfprog:
return
BPF_PROG_TYPE_UNSPEC = 0
if bpfprog.type > BPF_PROG_TYPE_UNSPEC:
# BPF_PROG_TYPE_UNSPEC = 0
if bpfprog.type > 0:
extended["bpf_filter_type"] = "eBPF"
bpfprog_aux = bpfprog.aux
if bpfprog_aux: