net: cosmetic: Rename CDPHandler to cdp_receive
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 07:58:13 +0000 (07:58 +0000)
committerJoe 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>
net/cdp.c
net/cdp.h
net/net.c

index 63be570584fd30e37a822c6a4a0999769cc6968a..9bec441497e51420701b357a4ab73743bd662809 100644 (file)
--- a/net/cdp.c
+++ b/net/cdp.c
@@ -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;
index 93bc4612203192e15e8728d62775406f951b30c2..ec7315af7979b9c143fc791d03315a3f9c694b91 100644 (file)
--- a/net/cdp.h
+++ b/net/cdp.h
@@ -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
index 67921c3ec2b93d2f3a0085de34bcf48c38e55065..f6d294e2ac509f183dbfa23cd8e9cddbbdb3732d 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -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