summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:00 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 14:19:23 -0500
commit1735188329d8c6357299462275061c05a46e100f (patch)
tree65b5a8910106cc04ae9c5ed013f51053c6274c8c /net
parentf575ae1f7d3940efbfc43e4236adb4a8ec1db632 (diff)
downloadu-boot-imx-1735188329d8c6357299462275061c05a46e100f.zip
u-boot-imx-1735188329d8c6357299462275061c05a46e100f.tar.gz
u-boot-imx-1735188329d8c6357299462275061c05a46e100f.tar.bz2
net: Encapsulate CDP packet identification
Checking for CDP packets should be encapsulated, not copied code. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 4cd5a0a..8624db0 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1099,7 +1099,7 @@ NetReceive(uchar *inpkt, int len)
#if defined(CONFIG_CMD_CDP)
/* keep track if packet is CDP */
- iscdp = memcmp(et->et_dest, NetCDPAddr, 6) == 0;
+ iscdp = is_cdp_packet(et->et_dest);
#endif
myvlanid = ntohs(NetOurVLAN);