tcp: make tcp_drop_syn_sent() static

This commit is contained in:
Gleb Smirnoff 2022-10-03 21:11:17 -07:00
parent fcb3f813f3
commit 775e20c159
2 changed files with 2 additions and 3 deletions

View File

@ -373,6 +373,7 @@ static int tcp_default_handoff_ok(struct tcpcb *tp);
static struct inpcb *tcp_notify(struct inpcb *, int);
static struct inpcb *tcp_mtudisc_notify(struct inpcb *, int);
static struct inpcb *tcp_mtudisc(struct inpcb *, int);
static struct inpcb *tcp_drop_syn_sent(struct inpcb *, int);
static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
const void *ip4hdr, const void *ip6hdr);
static ipproto_ctlinput_t tcp_ctlinput;
@ -3331,7 +3332,7 @@ tcp_new_isn(struct in_conninfo *inc)
* connection state is SYN-SENT, drop the connection. This behavior
* is controlled by the icmp_may_rst sysctl.
*/
struct inpcb *
static struct inpcb *
tcp_drop_syn_sent(struct inpcb *inp, int errno)
{
struct tcpcb *tp;

View File

@ -1170,8 +1170,6 @@ void tcp_mss_update(struct tcpcb *, int, int, struct hc_metrics_lite *,
struct tcp_ifcap *);
void tcp_mss(struct tcpcb *, int);
int tcp_mssopt(struct in_conninfo *);
struct inpcb *
tcp_drop_syn_sent(struct inpcb *, int);
struct tcpcb *
tcp_newtcpcb(struct inpcb *);
int tcp_default_output(struct tcpcb *);