History

bpf: add access to sock fields and pkt data from sk_skb programs

John Fastabend committed 9 years ago

Commit 8a31db51 parent 174a79f3 files · +179 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/bpf.h+9−0
@@ -712,6 +712,15 @@ struct __sk_buff { · 711 unmodified lines
712 __u32 data;712 __u32 data;
713 __u32 data_end;713 __u32 data_end;
714 __u32 napi_id;714 __u32 napi_id;
715
716 /* accessed by BPF_PROG_TYPE_sk_skb types */
717 __u32 family;
718 __u32 remote_ip4; /* Stored in network byte order */
719 __u32 local_ip4; /* Stored in network byte order */
720 __u32 remote_ip6[4]; /* Stored in network byte order */
721 __u32 local_ip6[4]; /* Stored in network byte order */
722 __u32 remote_port; /* Stored in network byte order */
723 __u32 local_port; /* stored in host byte order */
715};724};
716 725
717struct bpf_tunnel_key {726struct bpf_tunnel_key {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t