hook up the LAN (pcap) interface

This commit is contained in:
StapleButter
2017-12-18 23:24:45 +01:00
parent 0ff67d28d3
commit 3bdb7a7f2d
2 changed files with 77 additions and 4 deletions

View File

@ -408,11 +408,11 @@ int LAN_SendPacket(u8* data, int len)
void LAN_RXCallback(u_char* blarg, const struct pcap_pkthdr* header, const u_char* data)
{
while (PCapRXNum > 0);
PCapPacketLen = header->len;
memcpy(PCapPacketBuffer, data, PCapPacketLen);
PCapRXNum = 1;
printf("received shit\n");
}
int LAN_RecvPacket(u8* data)