faketcp.h revision cc808594
1cc808594SShuo Chen#include <algorithm> 2cc808594SShuo Chen 3cc808594SShuo Chen#include <assert.h> 4cc808594SShuo Chen#include <stdint.h> 5cc808594SShuo Chen#include <arpa/inet.h> // inet_ntop 6cc808594SShuo Chen#include <net/if.h> 7cc808594SShuo Chen 8cc808594SShuo Chenint tun_alloc(char *dev); 9cc808594SShuo Chenuint16_t in_checksum(const void* buf, int len); 10cc808594SShuo Chen 11cc808594SShuo Chenvoid icmp_input(int fd, const void* input, const void* payload, int len); 12