Tengo los siguientes warnings en gcc y no se porque:
Warning 1:
Citar
sendPacket3.c: In function ‘CreateEthernetHeader’:
sendPacket3.c:120: warning: implicit declaration of function ‘ether_aton’
sendPacket3.c:120: warning: implicit declaration of function ‘ether_aton’
Código
void * sourceMAC; sourceMAC =(void *) ether_aton(src_mac); //linea 120
Warning 2-3
Citar
sendPacket3.c: In function ‘sendPacket’:
sendPacket3.c:309: warning: pointer targets in assignment differ in signedness
sendPacket3.c:383: warning: implicit declaration of function ‘close’
sendPacket3.c:309: warning: pointer targets in assignment differ in signedness
sendPacket3.c:383: warning: implicit declaration of function ‘close’
Código
unsigned char *data; int pkt_len; //data = CreateData(DATA_SIZE); data="<html>HOLA</html>"; //linea 309 int DATA_SIZE=0; DATA_SIZE=17;//strlen((const char *)data); /**************************************************/ int raw; // por aqui sigen varias lineas de codigo.... close(raw); //linea 383
Warning 4
Citar
main.c: In function ‘main’:
main.c:16: warning: implicit declaration of function ‘atoi’
main.c:16: warning: implicit declaration of function ‘atoi’
Código
int srcPort,destPort, seqnum, acknum, urg,ack,psh,rst,syn,fin;
¿Alguna idea de como solucionar estos warnings?