Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
| Show First 20 Lines • Show All 707 Lines • ▼ Show 20 Lines | |||||
| done: | done: | ||||
| if (s != NULL) | if (s != NULL) | ||||
| free(s, M_TCPLOG); | free(s, M_TCPLOG); | ||||
| SCH_UNLOCK(sch); | SCH_UNLOCK(sch); | ||||
| } | } | ||||
| void | void | ||||
| syncache_badack(struct in_conninfo *inc, uint16_t port) | |||||
| { | |||||
| struct syncache *sc; | |||||
| struct syncache_head *sch; | |||||
| if (syncache_cookiesonly()) | |||||
| return; | |||||
| sc = syncache_lookup(inc, &sch); /* returns locked sch */ | |||||
| SCH_LOCK_ASSERT(sch); | |||||
| if ((sc != NULL) && (sc->sc_port == port)) { | |||||
| syncache_drop(sc, sch); | |||||
| TCPSTAT_INC(tcps_sc_badack); | |||||
| } | |||||
| SCH_UNLOCK(sch); | |||||
| } | |||||
| void | |||||
| syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq, uint16_t port) | syncache_unreach(struct in_conninfo *inc, tcp_seq th_seq, uint16_t port) | ||||
| { | { | ||||
| struct syncache *sc; | struct syncache *sc; | ||||
| struct syncache_head *sch; | struct syncache_head *sch; | ||||
| if (syncache_cookiesonly()) | if (syncache_cookiesonly()) | ||||
| return; | return; | ||||
| sc = syncache_lookup(inc, &sch); /* returns locked sch */ | sc = syncache_lookup(inc, &sch); /* returns locked sch */ | ||||
| ▲ Show 20 Lines • Show All 1,853 Lines • Show Last 20 Lines | |||||