Page MenuHomeFreeBSD

D44311.diff
No OneTemporary

D44311.diff

diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -4254,34 +4254,6 @@
}
}
-struct sockbuf *
-so_sockbuf_rcv(struct socket *so)
-{
-
- return (&so->so_rcv);
-}
-
-struct sockbuf *
-so_sockbuf_snd(struct socket *so)
-{
-
- return (&so->so_snd);
-}
-
-int
-so_state_get(const struct socket *so)
-{
-
- return (so->so_state);
-}
-
-void
-so_state_set(struct socket *so, int val)
-{
-
- so->so_state = val;
-}
-
int
so_options_get(const struct socket *so)
{
@@ -4309,76 +4281,3 @@
so->so_error = val;
}
-
-int
-so_linger_get(const struct socket *so)
-{
-
- return (so->so_linger);
-}
-
-void
-so_linger_set(struct socket *so, int val)
-{
-
- KASSERT(val >= 0 && val <= USHRT_MAX && val <= (INT_MAX / hz),
- ("%s: val %d out of range", __func__, val));
-
- so->so_linger = val;
-}
-
-struct protosw *
-so_protosw_get(const struct socket *so)
-{
-
- return (so->so_proto);
-}
-
-void
-so_protosw_set(struct socket *so, struct protosw *val)
-{
-
- so->so_proto = val;
-}
-
-void
-so_sorwakeup(struct socket *so)
-{
-
- sorwakeup(so);
-}
-
-void
-so_sowwakeup(struct socket *so)
-{
-
- sowwakeup(so);
-}
-
-void
-so_sorwakeup_locked(struct socket *so)
-{
-
- sorwakeup_locked(so);
-}
-
-void
-so_sowwakeup_locked(struct socket *so)
-{
-
- sowwakeup_locked(so);
-}
-
-void
-so_lock(struct socket *so)
-{
-
- SOCK_LOCK(so);
-}
-
-void
-so_unlock(struct socket *so)
-{
-
- SOCK_UNLOCK(so);
-}
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -2847,13 +2847,6 @@
*fp = inp->inp_fport;
}
-struct inpcb *
-so_sotoinpcb(struct socket *so)
-{
-
- return (sotoinpcb(so));
-}
-
/*
* Create an external-format (``xinpcb'') structure using the information in
* the kernel-format in_pcb structure pointed to by inp. This is done to
diff --git a/sys/netinet/tcp_fastopen.h b/sys/netinet/tcp_fastopen.h
--- a/sys/netinet/tcp_fastopen.h
+++ b/sys/netinet/tcp_fastopen.h
@@ -79,6 +79,7 @@
uint32_t secret;
};
+struct tcpcb;
#ifdef TCP_RFC7413
void tcp_fastopen_init(void);
void tcp_fastopen_destroy(void);
diff --git a/sys/netinet/tcp_offload.h b/sys/netinet/tcp_offload.h
--- a/sys/netinet/tcp_offload.h
+++ b/sys/netinet/tcp_offload.h
@@ -38,6 +38,8 @@
extern int registered_toedevs;
+struct tcpcb;
+
int tcp_offload_connect(struct socket *, struct sockaddr *);
void tcp_offload_listen_start(struct tcpcb *);
void tcp_offload_listen_stop(struct tcpcb *);
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -713,33 +713,10 @@
#ifdef _KERNEL
struct socket;
-struct inpcb *so_sotoinpcb(struct socket *so);
-struct sockbuf *so_sockbuf_snd(struct socket *);
-struct sockbuf *so_sockbuf_rcv(struct socket *);
-
-int so_state_get(const struct socket *);
-void so_state_set(struct socket *, int);
-
int so_options_get(const struct socket *);
void so_options_set(struct socket *, int);
int so_error_get(const struct socket *);
void so_error_set(struct socket *, int);
-
-int so_linger_get(const struct socket *);
-void so_linger_set(struct socket *, int);
-
-struct protosw *so_protosw_get(const struct socket *);
-void so_protosw_set(struct socket *, struct protosw *);
-
-void so_sorwakeup_locked(struct socket *so);
-void so_sowwakeup_locked(struct socket *so);
-
-void so_sorwakeup(struct socket *so);
-void so_sowwakeup(struct socket *so);
-
-void so_lock(struct socket *so);
-void so_unlock(struct socket *so);
-
#endif /* _KERNEL */
#endif /* !_SYS_SOCKET_H_ */

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 2:24 AM (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14708772
Default Alt Text
D44311.diff (3 KB)

Event Timeline