#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <arpa/inet.h>
Go to the source code of this file.
◆ DST
◆ DST_PORT
| #define DST_PORT "dport=" |
◆ IP_CONNTRACK_LOCATION
| #define IP_CONNTRACK_LOCATION "/proc/net/ip_conntrack" |
◆ NF_CONNTRACK_LOCATION
| #define NF_CONNTRACK_LOCATION "/proc/net/nf_conntrack" |
◆ SRC
◆ SRC_PORT
| #define SRC_PORT "sport=" |
◆ get_nat_ext_addr()
| int get_nat_ext_addr |
( |
struct sockaddr * | src, |
|
|
struct sockaddr * | dst, |
|
|
uint8_t | proto, |
|
|
struct sockaddr_storage * | ret_ext ) |