Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
/* XXX: LibAliasSetTarget() uses this constant. */ | /* XXX: LibAliasSetTarget() uses this constant. */ | ||||
#define INADDR_NONE 0xffffffff | #define INADDR_NONE 0xffffffff | ||||
#include <netinet/libalias/alias_sctp.h> | #include <netinet/libalias/alias_sctp.h> | ||||
#else | #else | ||||
#include "alias_sctp.h" | #include "alias_sctp.h" | ||||
#endif | #endif | ||||
#include <net/if.h> | |||||
#include <netinet/ip_fw.h> | |||||
/* Sizes of input and output link tables */ | /* Sizes of input and output link tables */ | ||||
#define LINK_TABLE_OUT_SIZE 4001 | #define LINK_TABLE_OUT_SIZE 4001 | ||||
#define LINK_TABLE_IN_SIZE 4001 | #define LINK_TABLE_IN_SIZE 4001 | ||||
#define GET_ALIAS_PORT -1 | #define GET_ALIAS_PORT -1 | ||||
#define GET_ALIAS_ID GET_ALIAS_PORT | #define GET_ALIAS_ID GET_ALIAS_PORT | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | #endif | ||||
unsigned int skinnyPort; /* TCP port used by the Skinny */ | unsigned int skinnyPort; /* TCP port used by the Skinny */ | ||||
/* protocol. */ | /* protocol. */ | ||||
struct proxy_entry *proxyList; | struct proxy_entry *proxyList; | ||||
struct in_addr true_addr; /* in network byte order. */ | struct in_addr true_addr; /* in network byte order. */ | ||||
u_short true_port; /* in host byte order. */ | u_short true_port; /* in host byte order. */ | ||||
/* Port ranges for aliasing. */ | |||||
struct nat_port_range portRange; | |||||
/* | /* | ||||
* sctp code support | * sctp code support | ||||
*/ | */ | ||||
donner: How about a stuct and a single enty in the record?
```
struct nat_port_range {
u_short lower… | |||||
/* counts associations that have progressed to UP and not yet removed */ | /* counts associations that have progressed to UP and not yet removed */ | ||||
int sctpLinkCount; | int sctpLinkCount; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* timing queue for keeping track of association timeouts */ | /* timing queue for keeping track of association timeouts */ | ||||
struct sctp_nat_timer sctpNatTimer; | struct sctp_nat_timer sctpNatTimer; | ||||
/* size of hash table used in this instance */ | /* size of hash table used in this instance */ | ||||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |
How about a stuct and a single enty in the record?
and