Skip to content

Commit

Permalink
samples/bpf: xdp_ddos01 remove reference to ttl code
Browse files Browse the repository at this point in the history
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
  • Loading branch information
netoptimizer committed Feb 15, 2017
1 parent 5e3766b commit a087400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/samples/bpf/xdp_ddos01_blacklist_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ u32 handle_eth_protocol(struct xdp_md *ctx, u16 eth_proto, u64 l3_offset)
return XDP_PASS;
}

SEC("xdp_ttl")
int xdp_ttl_program(struct xdp_md *ctx)
SEC("xdp_prog")
int xdp_program(struct xdp_md *ctx)
{
void *data_end = (void *)(long)ctx->data_end;
void *data = (void *)(long)ctx->data;
Expand Down

0 comments on commit a087400

Please sign in to comment.