OSDN Git Service

bpf: sockmap, support for msg_peek in sk_msg with redirect ingress
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 16 Oct 2018 18:08:04 +0000 (11:08 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Oct 2018 00:30:32 +0000 (02:30 +0200)
commit02c558b2d5d679fbbcaa5b9689484c7e0f8abb7b
treeb89b9cb06c6adb6862759afaefae6fb7ab6d768c
parent8734a162c13b1a893e7dff8de0df81fed04c51a6
bpf: sockmap, support for msg_peek in sk_msg with redirect ingress

This adds support for the MSG_PEEK flag when doing redirect to ingress
and receiving on the sk_msg psock queue. Previously the flag was
being ignored which could confuse applications if they expected the
flag to work as normal.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/tcp.h
net/ipv4/tcp_bpf.c
net/tls/tls_sw.c