#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-cdp.c,v 1.13 2002-04-26 09:51:34 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-cdp.c,v 1.14 2002-06-11 17:08:44 itojun Exp $";
#endif
#ifdef HAVE_CONFIG_H
printf(" Duplex: %s", p[i + 4] ? "full": "half");
break;
/* http://www.cisco.com/univercd/cc/td/doc/product/voice/ata/atarn/186rn21m.htm
- * plus more details from other sources
+ * plus more details from other sources
*/
case 0x0e: /* incomplete doc. */
printf(" ATA-186 VoIP VLAN request, app %d, vlan %d",
printf(" ATA-186 VoIP VLAN assignment" );
break;
case 0x10: /* incomplete doc. */
- printf(" power consumption: %1.2fW",
+ printf(" power consumption: %1.2fW",
cdp_get_number(p+i+4, len-4)/1000.0 );
break;
case 0x11: /* guess - not documented */
* protocol = LLC+SNAP header with the IPv6
* Ethertype, address length = 16
*/
- p += 10;
+ p += 10;
if (p + al > endp)
goto trunc;