Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_ratelimit.c
Show First 20 Lines • Show All 1,355 Lines • ▼ Show 20 Lines | |||||
#ifdef KERN_TLS | #ifdef KERN_TLS | ||||
if (rte != NULL && tls != NULL && tls->snd_tag != NULL) { | if (rte != NULL && tls != NULL && tls->snd_tag != NULL) { | ||||
/* | /* | ||||
* Fake a route change error to reset the TLS | * Fake a route change error to reset the TLS | ||||
* send tag. This will convert the existing | * send tag. This will convert the existing | ||||
* tag to a TLS ratelimit tag. | * tag to a TLS ratelimit tag. | ||||
*/ | */ | ||||
MPASS(tls->snd_tag->sw->type == IF_SND_TAG_TYPE_TLS); | MPASS(tls->snd_tag->sw->type == IF_SND_TAG_TYPE_TLS); | ||||
ktls_output_eagain(tp->t_inpcb, tls); | ktls_output_eagain(tp->t_inpcb); | ||||
} | } | ||||
#endif | #endif | ||||
} else { | } else { | ||||
/* | /* | ||||
* We are modifying a rate, wrong interface? | * We are modifying a rate, wrong interface? | ||||
*/ | */ | ||||
if (error) | if (error) | ||||
*error = EINVAL; | *error = EINVAL; | ||||
▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines |