1 /* SPDX-License-Identifier: GPL-2.0
2  * Copyright (c) 2018 Davide Caratti, Red Hat inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 2 of the GNU General Public
6  * License as published by the Free Software Foundation.
7  */
8 
9 #include <linux/bpf.h>
10 #include <linux/pkt_cls.h>
11 
action_ok(struct __sk_buff * s)12 __attribute__((section("action-ok"),used)) int action_ok(struct __sk_buff *s)
13 {
14 	return TC_ACT_OK;
15 }
16 
action_ko(struct __sk_buff * s)17 __attribute__((section("action-ko"),used)) int action_ko(struct __sk_buff *s)
18 {
19 	s->data = 0x0;
20 	return TC_ACT_OK;
21 }
22 
23 char _license[] __attribute__((section("license"),used)) = "GPL";
24