X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcdp.c;h=e8e7a67010b181eef59dc45165c82807360ebcb0;hb=4bdc27a1dca624fe74b58cd32074a3c2d2fd38a3;hp=2d8fa03a7e306d0b549a59ab8e25689496dcc1ac;hpb=d1f6052e6af18fc9c90a8bdaa4b5f8d916fdab35;p=karo-tx-uboot.git diff --git a/net/cdp.c b/net/cdp.c index 2d8fa03a7e..e8e7a67010 100644 --- a/net/cdp.c +++ b/net/cdp.c @@ -18,7 +18,7 @@ #include "cdp.h" /* Ethernet bcast address */ -const uchar NetCDPAddr[6] = { 0x01, 0x00, 0x0c, 0xcc, 0xcc, 0xcc }; +const u8 net_cdp_ethaddr[6] = { 0x01, 0x00, 0x0c, 0xcc, 0xcc, 0xcc }; #define CDP_DEVICE_ID_TLV 0x0001 #define CDP_ADDRESS_TLV 0x0002 @@ -124,8 +124,8 @@ CDPSendTrigger(void) /* NOTE: trigger sent not on any VLAN */ /* form ethernet header */ - memcpy(et->et_dest, NetCDPAddr, 6); - memcpy(et->et_src, NetOurEther, 6); + memcpy(et->et_dest, net_cdp_ethaddr, 6); + memcpy(et->et_src, net_ethaddr, 6); pkt += ETHER_HDR_SIZE; @@ -145,7 +145,7 @@ CDPSendTrigger(void) #ifdef CONFIG_CDP_DEVICE_ID *s++ = htons(CDP_DEVICE_ID_TLV); *s++ = htons(CONFIG_CDP_DEVICE_ID); - sprintf(buf, CONFIG_CDP_DEVICE_ID_PREFIX "%pm", NetOurEther); + sprintf(buf, CONFIG_CDP_DEVICE_ID_PREFIX "%pm", net_ethaddr); memcpy((uchar *)s, buf, 16); s += 16 / 2; #endif