Print this page
4587 snoop misdecodes DHCPv6 DHCPV6_DUID_LL identifiers

*** 21,44 **** /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/errno.h> #include <setjmp.h> #include <sys/socket.h> #include <net/if.h> #include <net/if_arp.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/if_ether.h> #include <netdb.h> #include <net/if_types.h> #include "snoop.h" extern char *dlc_header; extern jmp_buf xdr_err; --- 21,46 ---- /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #include <sys/types.h> #include <sys/errno.h> #include <setjmp.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> #include <sys/socket.h> #include <net/if.h> #include <net/if_arp.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/if_ether.h> #include <netdb.h> #include <net/if_types.h> + #include <arpa/inet.h> #include "snoop.h" extern char *dlc_header; extern jmp_buf xdr_err;
*** 217,227 **** { switch (t) { case ARPHRD_ETHER: return ("Ethernet (10Mb)"); case 2: ! return ("Experimental Ethernet (3MB)"); case 3: return ("Amateur Radio AX.25"); case 4: return ("Proteon ProNET Token Ring"); case 5: --- 219,229 ---- { switch (t) { case ARPHRD_ETHER: return ("Ethernet (10Mb)"); case 2: ! return ("Experimental Ethernet (3Mb)"); case 3: return ("Amateur Radio AX.25"); case 4: return ("Proteon ProNET Token Ring"); case 5:
*** 252,261 **** --- 254,265 ---- return ("HDLC"); case ARPHRD_FC: return ("Fibre Channel"); case ARPHRD_IPATM: return ("IP-ATM"); + case ARPHRD_METRICOM: + return ("Metricom"); case ARPHRD_TUNNEL: return ("Tunnel"); case ARPHRD_IB: return ("IPIB"); };