Skip to content

Commit

Permalink
test dns filter branch
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Dec 1, 2023
1 parent c018ee0 commit 4b62ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zfw_xdp_dns_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct dns_name_struct {

struct {
__uint(type, BPF_MAP_TYPE_ARRAY);
__uint(key_size, sizeof(uint16_t));
__uint(key_size, sizeof(uint32_t));
__uint(value_size, sizeof(struct dns_name_struct));
__uint(max_entries, 100);
__uint(pinning, LIBBPF_PIN_BY_NAME);
Expand Down Expand Up @@ -145,4 +145,4 @@ int xdp_filter(struct xdp_md *ctx) {
return XDP_PASS;
}

SEC("license") const char __license[] = "Dual BSD/GPL";
SEC("license") const char __license[] = "Dual BSD/GPL";

0 comments on commit 4b62ecd

Please sign in to comment.