Merge pull request #244 from xmmgithub/tk4/bpf

net: bpf: fix compile error in bpf_redirect_peer helper
This commit is contained in:
frankjpliu 2022-07-19 11:22:31 +08:00 committed by GitHub
commit a4ddb27654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2361,7 +2361,8 @@ out:
/* Internal, non-exposed redirect flags. */
enum {
BPF_F_NEIGH = (1ULL << 1),
BPF_F_NEIGH = (1ULL << 1),
BPF_F_PEER = (1ULL << 2),
BPF_F_NEXTHOP = (1ULL << 3),
#define BPF_F_REDIRECT_INTERNAL (BPF_F_NEIGH | BPF_F_PEER | BPF_F_NEXTHOP)
};