Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/toecore.h
Show All 35 Lines | |||||
#endif | #endif | ||||
#include <sys/_eventhandler.h> | #include <sys/_eventhandler.h> | ||||
struct tcpopt; | struct tcpopt; | ||||
struct tcphdr; | struct tcphdr; | ||||
struct in_conninfo; | struct in_conninfo; | ||||
struct tcp_info; | struct tcp_info; | ||||
struct nhop_object; | |||||
struct ktls_session; | struct ktls_session; | ||||
struct toedev { | struct toedev { | ||||
TAILQ_ENTRY(toedev) link; /* glue for toedev_list */ | TAILQ_ENTRY(toedev) link; /* glue for toedev_list */ | ||||
void *tod_softc; /* TOE driver private data */ | void *tod_softc; /* TOE driver private data */ | ||||
/* | /* | ||||
* Active open. If a failure occurs, it is reported back by the driver | * Active open. If a failure occurs, it is reported back by the driver | ||||
* via toe_connect_failed. | * via toe_connect_failed. | ||||
*/ | */ | ||||
int (*tod_connect)(struct toedev *, struct socket *, struct rtentry *, | int (*tod_connect)(struct toedev *, struct socket *, struct nhop_object *, | ||||
struct sockaddr *); | struct sockaddr *); | ||||
/* Passive open. */ | /* Passive open. */ | ||||
int (*tod_listen_start)(struct toedev *, struct tcpcb *); | int (*tod_listen_start)(struct toedev *, struct tcpcb *); | ||||
int (*tod_listen_stop)(struct toedev *, struct tcpcb *); | int (*tod_listen_stop)(struct toedev *, struct tcpcb *); | ||||
/* | /* | ||||
* The kernel uses this routine to pass on any frame it receives for an | * The kernel uses this routine to pass on any frame it receives for an | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |