main.c aktualisiert
This commit is contained in:
parent
0bc9ea0685
commit
d06eab0a55
6
main.c
6
main.c
@ -1,8 +1,3 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Example of L3 forwarding via XDP and use of bpf FIB lookup helper.
|
||||
*
|
||||
* Copyright (c) 2017-18 David Ahern <dsahern@gmail.com>
|
||||
*/
|
||||
#define KBUILD_MODNAME "xdp_l3fwd"
|
||||
#include <linux/bpf.h>
|
||||
#include <linux/in.h>
|
||||
@ -23,7 +18,6 @@ struct bpf_map_def SEC("maps") xdp_l3fwd_ports = {
|
||||
.max_entries = 512,
|
||||
};
|
||||
|
||||
/* from include/net/ip.h */
|
||||
static __always_inline int ip_decrease_ttl(struct iphdr *iph)
|
||||
{
|
||||
u32 check = (__force u32)iph->check;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user