| 101 | |
| 102 | SEC("xdp") |
| 103 | int egress(struct xdp_md *ctx) |
| 104 | { |
| 105 | |
| 106 | // STEP1: parse packet, get src mac address, target mac address |
| 107 | // STEP1: lookup ingress map, check redirect adress |
| 108 | // STEP2: redirect/pass |
| 109 | } |
| 110 | |
| 111 | char __license[] SEC("license") = "GPL"; |
nothing calls this directly
no outgoing calls
no test coverage detected