Skip to content

Commit

Permalink
feat: update map section paths for IPv4 and IPv6 traffic statistics
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Feb 3, 2025
1 parent 6325d7a commit 83b5d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebpf/aw-bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ struct {
__type(key, __be32);
__type(value, struct traffic_stats);
__uint(max_entries, 1024);
} ipv4_map SEC(".maps");
} ipv4_map SEC(".maps/tc/ipv4_map");

// Map for IPv6 addresses
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__type(key, struct in6_addr);
__type(value, struct traffic_stats);
__uint(max_entries, 1024);
} ipv6_map SEC(".maps");
} ipv6_map SEC(".maps/tc/ipv6_map");

static __always_inline __u32 get_current_time(void)
{
Expand Down

0 comments on commit 83b5d6d

Please sign in to comment.