Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_fw.h
Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | |||||
/* Nat configuration data struct. */ | /* Nat configuration data struct. */ | ||||
struct nat44_cfg_nat { | struct nat44_cfg_nat { | ||||
char name[64]; /* nat name */ | char name[64]; /* nat name */ | ||||
char if_name[64]; /* interface name */ | char if_name[64]; /* interface name */ | ||||
uint32_t size; /* structure size incl. redirs */ | uint32_t size; /* structure size incl. redirs */ | ||||
struct in_addr ip; /* nat IPv4 address */ | struct in_addr ip; /* nat IPv4 address */ | ||||
uint32_t mode; /* aliasing mode */ | uint32_t mode; /* aliasing mode */ | ||||
uint32_t redir_cnt; /* number of entry in spool chain */ | uint32_t redir_cnt; /* number of entry in spool chain */ | ||||
u_short alias_port_lo; /* low range for port aliasing */ | |||||
u_short alias_port_hi; /* high range for port aliasing */ | |||||
}; | }; | ||||
/* Nat command. */ | /* Nat command. */ | ||||
typedef struct _ipfw_insn_nat { | typedef struct _ipfw_insn_nat { | ||||
ipfw_insn o; | ipfw_insn o; | ||||
struct cfg_nat *nat; | struct cfg_nat *nat; | ||||
} ipfw_insn_nat; | } ipfw_insn_nat; | ||||
▲ Show 20 Lines • Show All 508 Lines • Show Last 20 Lines |