[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141125.134102.1488230781371300774.davem@davemloft.net>
Date: Tue, 25 Nov 2014 13:41:02 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: willemb@...gle.com
Cc: netdev@...r.kernel.org, luto@...capital.net,
richardcochran@...il.com
Subject: Re: [PATCH rfc 2/4] net-errqueue: add IP(V6)_PKTINFO support
From: Willem de Bruijn <willemb@...gle.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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists