1bd4aed0eSJiong Wang /* Copyright (c) 2017 VMware 2bd4aed0eSJiong Wang * 3bd4aed0eSJiong Wang * This program is free software; you can redistribute it and/or 4bd4aed0eSJiong Wang * modify it under the terms of version 2 of the GNU General Public 5bd4aed0eSJiong Wang * License as published by the Free Software Foundation. 6bd4aed0eSJiong Wang * 7bd4aed0eSJiong Wang * This program is distributed in the hope that it will be useful, but 8bd4aed0eSJiong Wang * WITHOUT ANY WARRANTY; without even the implied warranty of 9bd4aed0eSJiong Wang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10bd4aed0eSJiong Wang * General Public License for more details. 11bd4aed0eSJiong Wang */ 12bd4aed0eSJiong Wang #include <linux/bpf.h> 133e689141SToke Høiland-Jørgensen #include <bpf/bpf_helpers.h> 14bd4aed0eSJiong Wang 15bd4aed0eSJiong Wang SEC("redirect_to_111") xdp_redirect_to_111(struct xdp_md * xdp)16bd4aed0eSJiong Wangint xdp_redirect_to_111(struct xdp_md *xdp) 17bd4aed0eSJiong Wang { 18bd4aed0eSJiong Wang return bpf_redirect(111, 0); 19bd4aed0eSJiong Wang } 20bd4aed0eSJiong Wang SEC("redirect_to_222") xdp_redirect_to_222(struct xdp_md * xdp)21bd4aed0eSJiong Wangint xdp_redirect_to_222(struct xdp_md *xdp) 22bd4aed0eSJiong Wang { 23bd4aed0eSJiong Wang return bpf_redirect(222, 0); 24bd4aed0eSJiong Wang } 25bd4aed0eSJiong Wang 26bd4aed0eSJiong Wang char _license[] SEC("license") = "GPL"; 27