[PATCH 1/2] idiag: add a copy of linux/sock_diag.h

Cong Wang xiyou.wangcong at gmail.com
Fri Oct 24 10:02:00 PDT 2014


On Fri, Oct 24, 2014 at 1:40 AM, Thomas Haller <thaller at redhat.com> wrote:
> We cannot internally use a different definition from
> include/linux-private/linux/tcp.h because then idiagnl_msg_get_tcpinfo()
> would break if <netinet/tcp.h> happens to define anything different.
>

I think we can, because our copy is the latest where tcp_info is always
larger than the one on old kernel. So as long as we don't return
a tcp_info smaller, we should be safe, no?



More information about the libnl mailing list