summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d353eb)
raw | patch | inline | side by side (parent: 8d353eb)
author | Joe Hershberger <joe.hershberger@ni.com> | |
Wed, 23 May 2012 07:58:13 +0000 (07:58 +0000) | ||
committer | Joe Hershberger <joe.hershberger@ni.com> | |
Wed, 23 May 2012 22:46:16 +0000 (17:46 -0500) |
This is not called as a handler, so don't name it that way
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
net/cdp.c | patch | blob | history | |
net/cdp.h | patch | blob | history | |
net/net.c | patch | blob | history |
diff --git a/net/cdp.c b/net/cdp.c
index 63be570584fd30e37a822c6a4a0999769cc6968a..9bec441497e51420701b357a4ab73743bd662809 100644 (file)
--- a/net/cdp.c
+++ b/net/cdp.c
/* nothing */
}
-void
-CDPHandler(const uchar *pkt, unsigned len)
+void cdp_receive(const uchar *pkt, unsigned len)
{
const uchar *t;
const ushort *ss;
diff --git a/net/cdp.h b/net/cdp.h
index 93bc4612203192e15e8728d62775406f951b30c2..ec7315af7979b9c143fc791d03315a3f9c694b91 100644 (file)
--- a/net/cdp.h
+++ b/net/cdp.h
#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
diff --git a/net/net.c b/net/net.c
index 67921c3ec2b93d2f3a0085de34bcf48c38e55065..f6d294e2ac509f183dbfa23cd8e9cddbbdb3732d 100644 (file)
--- a/net/net.c
+++ b/net/net.c
#if defined(CONFIG_CMD_CDP)
if (iscdp) {
- CDPHandler((uchar *)ip, len);
+ cdp_receive((uchar *)ip, len);
return;
}
#endif