Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_syncache.h
Show All 35 Lines | |||||
void syncache_init(void); | void syncache_init(void); | ||||
#ifdef VIMAGE | #ifdef VIMAGE | ||||
void syncache_destroy(void); | void syncache_destroy(void); | ||||
#endif | #endif | ||||
void syncache_unreach(struct in_conninfo *, struct tcphdr *); | void syncache_unreach(struct in_conninfo *, struct tcphdr *); | ||||
int syncache_expand(struct in_conninfo *, struct tcpopt *, | int syncache_expand(struct in_conninfo *, struct tcpopt *, | ||||
struct tcphdr *, struct socket **, struct mbuf *); | struct tcphdr *, struct socket **, struct mbuf *); | ||||
void syncache_add(struct in_conninfo *, struct tcpopt *, | int syncache_add(struct in_conninfo *, struct tcpopt *, | ||||
struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *, | struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *, | ||||
void *, void *); | void *, void *); | ||||
void syncache_chkrst(struct in_conninfo *, struct tcphdr *); | void syncache_chkrst(struct in_conninfo *, struct tcphdr *); | ||||
void syncache_badack(struct in_conninfo *); | void syncache_badack(struct in_conninfo *); | ||||
int syncache_pcbcount(void); | int syncache_pcbcount(void); | ||||
int syncache_pcblist(struct sysctl_req *req, int max_pcbs, int *pcbs_exported); | int syncache_pcblist(struct sysctl_req *req, int max_pcbs, int *pcbs_exported); | ||||
struct syncache { | struct syncache { | ||||
Show All 16 Lines | u_int8_t sc_requested_s_scale:4, | ||||
sc_requested_r_scale:4; | sc_requested_r_scale:4; | ||||
u_int16_t sc_flags; | u_int16_t sc_flags; | ||||
#if defined(TCP_OFFLOAD) || !defined(TCP_OFFLOAD_DISABLE) | #if defined(TCP_OFFLOAD) || !defined(TCP_OFFLOAD_DISABLE) | ||||
struct toedev *sc_tod; /* entry added by this TOE */ | struct toedev *sc_tod; /* entry added by this TOE */ | ||||
void *sc_todctx; /* TOE driver context */ | void *sc_todctx; /* TOE driver context */ | ||||
#endif | #endif | ||||
struct label *sc_label; /* MAC label reference */ | struct label *sc_label; /* MAC label reference */ | ||||
struct ucred *sc_cred; /* cred cache for jail checks */ | struct ucred *sc_cred; /* cred cache for jail checks */ | ||||
#ifdef TCP_RFC7413 | |||||
void *sc_tfo_cookie; /* for TCP Fast Open response */ | |||||
#endif | |||||
void *sc_pspare; /* TCP_SIGNATURE */ | void *sc_pspare; /* TCP_SIGNATURE */ | ||||
u_int32_t sc_spare[2]; /* UTO */ | u_int32_t sc_spare[2]; /* UTO */ | ||||
}; | }; | ||||
/* | /* | ||||
* Flags for the sc_flags field. | * Flags for the sc_flags field. | ||||
*/ | */ | ||||
#define SCF_NOOPT 0x01 /* no TCP options */ | #define SCF_NOOPT 0x01 /* no TCP options */ | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |