提交 0b4c5ff4 编写于 作者: J Joe Hershberger

net: cosmetic: Rename CDPHandler to cdp_receive

This is not called as a handler, so don't name it that way
Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 8d353eb8
...@@ -245,8 +245,7 @@ CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, ...@@ -245,8 +245,7 @@ CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
/* nothing */ /* nothing */
} }
void void cdp_receive(const uchar *pkt, unsigned len)
CDPHandler(const uchar *pkt, unsigned len)
{ {
const uchar *t; const uchar *t;
const ushort *ss; const ushort *ss;
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
#define __CDP_H__ #define __CDP_H__
void CDPStart(void); void CDPStart(void);
void CDPHandler(const uchar *pkt, unsigned len); /* Process a received CDP packet */
void cdp_receive(const uchar *pkt, unsigned len);
#endif /* __CDP_H__ */ #endif /* __CDP_H__ */
#endif #endif
...@@ -940,7 +940,7 @@ NetReceive(uchar *inpkt, int len) ...@@ -940,7 +940,7 @@ NetReceive(uchar *inpkt, int len)
#if defined(CONFIG_CMD_CDP) #if defined(CONFIG_CMD_CDP)
if (iscdp) { if (iscdp) {
CDPHandler((uchar *)ip, len); cdp_receive((uchar *)ip, len);
return; return;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册