Alexei Starovoitov
37e82c2f97
bpf: allow BPF programs access skb->skb_iif and skb->dev->ifindex fields
...
classic BPF already exposes skb->dev->ifindex via SKF_AD_IFINDEX extension.
Allow eBPF program to access it as well. Note that classic aborts execution
of the program if 'skb->dev == NULL' (which is inconvenient for program
writers), whereas eBPF returns zero in such case.
Also expose the 'skb_iif' field, since programs triggered by redirected
packet need to known the original interface index.
Summary:
__skb->ifindex -> skb->dev->ifindex
__skb->ingress_ifindex -> skb->skb_iif
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com >
Acked-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-05-30 17:51:13 -07:00
..
2015-04-01 11:28:22 +02:00
2015-03-31 22:14:04 +02:00
2015-02-14 17:05:03 +00:00
2015-05-15 20:50:56 +02:00
2015-04-13 20:08:38 +02:00
2015-04-21 16:16:02 -04:00
2015-02-23 09:59:07 -06:00
2015-03-20 19:10:44 -04:00
2015-04-02 18:10:35 -03:00
2015-05-30 17:51:13 -07:00
2015-02-02 19:25:51 -08:00
2015-05-06 08:03:19 +02:00
2015-03-06 21:50:02 -05:00
2015-04-15 12:10:16 -04:00
2015-05-19 16:32:18 -04:00
2015-03-25 15:07:05 +11:00
2015-04-16 14:08:49 -04:00
2015-04-12 21:25:13 -04:00
2015-02-05 02:45:00 -05:00
2015-03-23 22:12:09 -04:00
2015-05-13 15:59:13 -04:00
2015-05-13 15:43:00 -04:00
2015-04-29 17:10:38 -04:00
2015-04-14 18:25:15 -07:00
2015-02-09 16:59:03 +09:00
2015-05-25 13:25:35 -04:00
2015-03-23 22:12:08 -04:00
2015-04-22 10:55:06 -07:00
2015-02-11 17:06:00 -08:00
2015-02-17 14:34:51 -08:00
2015-04-21 15:21:29 +02:00
2015-02-03 12:48:40 -05:00
2015-04-21 09:44:55 -03:00
2015-02-26 08:40:10 -03:00
2015-02-12 18:54:08 -08:00
2015-05-09 22:29:50 -04:00
2015-03-20 21:47:40 -04:00
2015-02-02 18:46:51 -08:00
2015-05-14 01:10:05 -04:00
2015-05-09 22:15:31 -04:00
2015-02-02 21:50:40 +01:00
2015-04-21 16:16:04 -04:00
2015-04-23 15:16:14 -04:00
2015-05-06 15:50:02 +02:00
2015-02-19 16:15:35 -07:00
2015-02-07 22:40:17 -08:00
2015-04-02 17:14:17 +02:00
2015-05-21 23:26:51 -04:00
2015-05-12 18:22:49 -04:00
2015-02-12 12:30:29 +01:00
2015-03-18 21:55:08 +01:00
2015-05-14 22:45:39 -04:00
2015-02-07 18:43:16 +08:00
2015-03-07 03:25:18 +01:00
2015-03-07 03:39:55 +01:00
2015-05-09 16:42:32 -04:00
2015-04-19 22:40:26 -07:00
2015-05-21 23:25:21 -04:00
2015-02-09 13:20:47 -08:00
2015-03-05 22:08:42 -05:00
2015-01-31 09:05:06 -08:00
2015-02-02 11:51:38 -02:00
2015-04-08 06:36:52 -03:00
2015-03-23 11:44:35 -07:00
2015-03-16 14:08:44 -06:00
2015-04-08 06:36:52 -03:00
2015-04-15 12:41:09 +09:30
2015-03-10 11:48:29 +10:30
2015-02-11 15:03:16 +10:30
2015-03-29 12:13:52 +10:30
2015-03-29 12:13:52 +10:30
2015-02-17 16:19:27 +10:30
2015-02-11 15:03:15 +10:30
2015-05-01 20:46:32 -07:00
2015-03-13 15:55:43 +10:30
2015-03-31 13:58:35 -04:00
2015-04-03 01:04:18 -03:00