--- embedaddon/libnet/src/libnet_link_win32.c 2012/02/21 22:14:23 1.1.1.1 +++ embedaddon/libnet/src/libnet_link_win32.c 2013/07/22 11:54:42 1.1.1.2 @@ -1,5 +1,5 @@ /* - * $Id: libnet_link_win32.c,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ + * $Id: libnet_link_win32.c,v 1.1.1.2 2013/07/22 11:54:42 misho Exp $ * * libnet * libnet_link_win32.c - low-level win32 libwpcap routines @@ -36,7 +36,7 @@ #include "../include/config.h" #endif #include -#include // From the Microsoft Platform SDK +#include /* From the Microsoft Platform SDK */ #include "../include/win32/libnet.h" #include #include @@ -139,7 +139,7 @@ libnet_close_link_interface(libnet_t *l) } int -libnet_write_link(libnet_t *l, u_int8_t *packet, u_int32_t size) +libnet_write_link(libnet_t *l, const uint8_t *packet, uint32_t size) { LPPACKET lpPacket; DWORD BytesTransfered; @@ -234,7 +234,7 @@ libnet_get_hwaddr(libnet_t *l) struct hostent *gethostbyname2(const int8_t *name, int af) { - // XXX not implemented + /* XXX not implemented */ return(NULL); } @@ -312,7 +312,7 @@ BYTE * libnet_win32_read_arp_table(DWORD DestIP) if(status == NO_ERROR) { - // set current interface + /* set current interface */ ci = pIpNetTable->table[0].dwIndex; for (i = 0; i < pIpNetTable->dwNumEntries; ++i) @@ -320,7 +320,7 @@ BYTE * libnet_win32_read_arp_table(DWORD DestIP) if (pIpNetTable->table[i].dwIndex != ci) ci = pIpNetTable->table[i].dwIndex; - if(pIpNetTable->table[i].dwAddr == DestIP) // found IP in arp cache + if(pIpNetTable->table[i].dwAddr == DestIP) /* found IP in arp cache */ { memcpy(buffMAC, pIpNetTable->table[i].bPhysAddr, sizeof(buffMAC)); free(pIpNetTable);