mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
nat64-bpf: Don't use deprecated 'classifier' section names
Newer versions of libbpf deprecated the 'classifier' section names in favour of just 'tc'. Update the nat64 code accordingly. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
@@ -709,13 +709,13 @@ static int nat64_handler(struct __sk_buff *skb, bool egress)
|
||||
|
||||
return TC_ACT_OK;
|
||||
}
|
||||
SEC("classifier")
|
||||
SEC("tc")
|
||||
int nat64_egress(struct __sk_buff *skb)
|
||||
{
|
||||
return nat64_handler(skb, true);
|
||||
}
|
||||
|
||||
SEC("classifier")
|
||||
SEC("tc")
|
||||
int nat64_ingress(struct __sk_buff *skb)
|
||||
{
|
||||
return nat64_handler(skb, false);
|
||||
|
Reference in New Issue
Block a user