bridge: prevent bridging wrong device
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 6 Nov 2009 04:46:52 +0000 (20:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:46:52 +0000 (20:46 -0800)
commit1056bd51674e529813213186471bb4ac6689a755
tree9843cf9f4a07caadbf1d733de0b9d495554ab799
parent22402529df88ec39a59b08a46bced73dd5722b64
bridge: prevent bridging wrong device

The bridge code assumes ethernet addressing, so be more strict in
the what is allowed. This showed up when GRE had a bug and was not
using correct address format.

Add some more comments for increased clarity.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c