On Mon, Feb 24, 2020 at 8:46 PM Lingpeng Chen <forrest0579@xxxxxxxxx> wrote: > > Currently 5-tuple(sip+dip+sport+dport+proto) can't identify a > uniq connection because there may be multi net namespace. > For example, there may be a chance that netns a and netns b all > listen on 127.0.0.1:8080 and the client with same port 40782 > connect to them. Without netns number, sock ops program > can't distinguish them. > Using bpf_get_netns_id helper to get current connection > netns id to distinguish connections. > > Signed-off-by: Lingpeng Chen <forrest0579@xxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>