Monero
Loading...
Searching...
No Matches
nfct_get.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <arpa/inet.h>
Include dependency graph for nfct_get.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DST   "dst="
#define DST_PORT   "dport="
#define SRC   "src="
#define SRC_PORT   "sport="
#define IP_CONNTRACK_LOCATION   "/proc/net/ip_conntrack"
#define NF_CONNTRACK_LOCATION   "/proc/net/nf_conntrack"

Functions

int get_nat_ext_addr (struct sockaddr *src, struct sockaddr *dst, uint8_t proto, struct sockaddr_storage *ret_ext)

Macro Definition Documentation

◆ DST

#define DST   "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

#define SRC   "src="

◆ SRC_PORT

#define SRC_PORT   "sport="

Function Documentation

◆ get_nat_ext_addr()

int get_nat_ext_addr ( struct sockaddr * src,
struct sockaddr * dst,
uint8_t proto,
struct sockaddr_storage * ret_ext )