Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137563334
D33365.id54425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33365.id54425.diff
View Options
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -194,7 +194,7 @@
* Tcp output routine: figure out what should be sent and send it.
*/
int
-tcp_output(struct tcpcb *tp)
+tcp_default_output(struct tcpcb *tp)
{
struct socket *so = tp->t_inpcb->inp_socket;
int32_t len;
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -381,7 +381,7 @@
static struct tcp_function_block tcp_def_funcblk = {
.tfb_tcp_block_name = "freebsd",
- .tfb_tcp_output = tcp_output,
+ .tfb_tcp_output = tcp_default_output,
.tfb_tcp_do_segment = tcp_do_segment,
.tfb_tcp_ctloutput = tcp_default_ctloutput,
.tfb_tcp_handoff_ok = tcp_default_handoff_ok,
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -385,6 +385,13 @@
};
TAILQ_HEAD(tcp_funchead, tcp_function);
+
+static inline int
+tcp_output(struct tcpcb *tp)
+{
+
+ return (tp->t_fb->tfb_tcp_output(tp));
+}
#endif /* _KERNEL */
/*
@@ -1064,7 +1071,7 @@
tcp_drop_syn_sent(struct inpcb *, int);
struct tcpcb *
tcp_newtcpcb(struct inpcb *);
-int tcp_output(struct tcpcb *);
+int tcp_default_output(struct tcpcb *);
void tcp_state_change(struct tcpcb *, int);
void tcp_respond(struct tcpcb *, void *,
struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 25, 8:29 AM (14 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26117677
Default Alt Text
D33365.id54425.diff (1 KB)
Attached To
Mode
D33365: tcp: welcome back tcp_output() as the right way to run output on tcpcb.
Attached
Detach File
Event Timeline
Log In to Comment