Skip to content

Commit

Permalink
fix veristat test failed.
Browse files Browse the repository at this point in the history
unrecognized ELF section name 'classifier/egress'

Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Oct 14, 2023
1 parent a793a34 commit c998084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kern/tc.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ static __always_inline int capture_packets(struct __sk_buff *skb, bool is_ingres
}

// egress_cls_func is called for packets that are going out of the network
SEC("classifier/egress")
SEC("classifier")
int egress_cls_func(struct __sk_buff *skb) {
return capture_packets(skb, false);
};

// ingress_cls_func is called for packets that are coming into the network
SEC("classifier/ingress")
SEC("classifier")
int ingress_cls_func(struct __sk_buff *skb) {
return capture_packets(skb, true);
};
Expand Down

0 comments on commit c998084

Please sign in to comment.