Skip to content
Snippets Groups Projects
Commit 0b4c5ff4 authored by Joe Hershberger's avatar Joe Hershberger
Browse files

net: cosmetic: Rename CDPHandler to cdp_receive


This is not called as a handler, so don't name it that way

Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 8d353eb8
Branches
Tags
No related merge requests found
......@@ -245,8 +245,7 @@ CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
/* nothing */
}
void
CDPHandler(const uchar *pkt, unsigned len)
void cdp_receive(const uchar *pkt, unsigned len)
{
const uchar *t;
const ushort *ss;
......
......@@ -14,7 +14,8 @@
#define __CDP_H__
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
......@@ -940,7 +940,7 @@ NetReceive(uchar *inpkt, int len)
#if defined(CONFIG_CMD_CDP)
if (iscdp) {
CDPHandler((uchar *)ip, len);
cdp_receive((uchar *)ip, len);
return;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment