Diff for /embedaddon/libnet/sample/hsrp.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/07/22 11:54:41 version 1.1.1.2, 2023/09/27 11:11:38
Line 29 Line 29
  *   *
  */   */
   
 #if (HAVE_CONFIG_H)  
 #if ((_WIN32) && !(__CYGWIN__))   
 #include "../include/win32/config.h"  
 #else  
 #include "../include/config.h"  
 #endif  
 #endif  
 #include "./libnet_test.h"  #include "./libnet_test.h"
   
   
Line 94  main(int argc, char *argv[]) Line 87  main(int argc, char *argv[])
     }      }
   
     memset(authdata, 0, 8);      memset(authdata, 0, 8);
    strncpy(authdata, "cisco", 5);    strncpy((char *)authdata, "cisco", 5);
   
   
     ptag = libnet_build_hsrp(      ptag = libnet_build_hsrp(
Line 158  main(int argc, char *argv[]) Line 151  main(int argc, char *argv[])
     }      }
   
           
    eth_dst = libnet_hex_aton(eth_dst, &c);    eth_dst = (char *)libnet_hex_aton(eth_dst, &c);
     ptag = libnet_autobuild_ethernet(      ptag = libnet_autobuild_ethernet(
        eth_dst,                                /* ethernet destination */        (uint8_t *)eth_dst,                     /* ethernet destination */
         ETHERTYPE_IP,                           /* protocol type */          ETHERTYPE_IP,                           /* protocol type */
         l);                                     /* libnet handle */          l);                                     /* libnet handle */
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>