[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091102.000756.222203879.davem@davemloft.net>
Date: Mon, 02 Nov 2009 00:07:56 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: shemminger@...tta.com
Cc: nneul@....edu, netdev@...r.kernel.org
Subject: Re: [RFC] bridge: check address size
From: Stephen Hemminger <shemminger@...tta.com>
Date: Thu, 29 Oct 2009 15:24:08 -0700
> - if (dev->flags & IFF_LOOPBACK || dev->type != ARPHRD_ETHER)
> + /* Don't allow bridging non ethernet like devices */
> + if (dev->flags & IFF_LOOPBACK
> + || dev->type != ARPHRD_ETHER
> + || dev->addr_len != ETH_ALEN)
Please format this as:
> + if (dev->flags & IFF_LOOPBACK ||
> + dev->type != ARPHRD_ETHER ||
> + dev->addr_len != ETH_ALEN)
What you're doing in the patch follows the GNU coding standards, no
the kernel ones. :-)
--
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