projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Encapsulate CDP packet identification
[platform/kernel/u-boot.git]
/
net
/
net.c
diff --git
a/net/net.c
b/net/net.c
index
4cd5a0a
..
8624db0
100644
(file)
--- 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);