Re: [PATCH rfc 2/4] net-errqueue: add IP(V6)_PKTINFO support From: David Miller <davem@davemloft.net> Date: 2014-11-25 18:41:05 From: Willem de Bruijn <willemb@google.com> Date: Tue, 25 Nov 2014 12:58:04 -0500 + if (inet_sk(sk)->cmsg_flags & IP_CMSG_PKTINFO && skb->dev) { + struct in_pktinfo info = {0}; I think memset(&info... is cleaner, and: + struct in6_pktinfo info; + + memset(&info, 0, sizeof(info)); Would make the code consistent with the ipv6 side.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help