mirror of
https://code.semirocket.science/wrapsix
synced 2024-12-11 15:11:03 +02:00
Typo fixes
This commit is contained in:
parent
59fdab7ed8
commit
fbbf20ba0a
@ -312,7 +312,7 @@ int tcp_ipv4(struct s_ethernet *eth4, struct s_ipv4 *ip4, char *payload,
|
||||
/* if this is the last fragment, remove the entry from table */
|
||||
if (!(ip4->flags_offset & htons(IPV4_FLAG_MORE_FRAGMENTS))) {
|
||||
printf("[Debug] Removing fragment entry\n");
|
||||
nat_in_fragments_clenup(nat4_tcp_fragments,
|
||||
nat_in_fragments_cleanup(nat4_tcp_fragments,
|
||||
ip4->ip_src, ip4->id);
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "transmitter.h"
|
||||
#include "wrapper.h"
|
||||
|
||||
-/* +++ CONFIGURATION +++ */
|
||||
/* +++ CONFIGURATION +++ */
|
||||
#define INTERFACE "eth0" /* be sure to turn off generic-segmentation-offload! */
|
||||
#define PREFIX "64:ff9b::"
|
||||
#define IPV4_ADDR "192.168.0.111"
|
||||
@ -61,7 +61,7 @@ int main(int argc, char **argv)
|
||||
|
||||
int sniff_sock;
|
||||
int length;
|
||||
char buffer[BUFFER_SIZE];
|
||||
char buffer[MTU];
|
||||
|
||||
/* initialize the socket for sniffing */
|
||||
if ((sniff_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) == -1) {
|
||||
@ -124,7 +124,7 @@ int main(int argc, char **argv)
|
||||
/* sniff! :c) */
|
||||
for (;;) {
|
||||
addr_size = sizeof(addr);
|
||||
if ((length = recv(sniff_sock, buffer, BUFFER_SIZE, 0)) == -1) {
|
||||
if ((length = recv(sniff_sock, buffer, MTU, 0)) == -1) {
|
||||
fprintf(stderr, "[Error] Unable to retrieve data from socket\n");
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user