aboutsummaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/socket.c b/socket.c
index eacea1f..1bcb3a7 100644
--- a/socket.c
+++ b/socket.c
@@ -15,14 +15,6 @@
static void sofcantrcvmore(struct socket *so);
static void sofcantsendmore(struct socket *so);
-#if 0
-static void
-so_init()
-{
- /* Nothing yet */
-}
-#endif
-
struct socket *solookup(struct socket *head, struct in_addr laddr, u_int lport,
struct in_addr faddr, u_int fport)
{
@@ -533,12 +525,6 @@ void sorecvfrom(struct socket *so)
so->so_expire = curtime + SO_EXPIRE;
}
- /* if (m->m_len == len) {
- * m_inc(m, MINCSIZE);
- * m->m_len = 0;
- * }
- */
-
/*
* If this packet was destined for CTL_ADDR,
* make it look like that's where it came from, done by udp_output
@@ -611,7 +597,6 @@ struct socket *tcp_listen(u_int32_t haddr, u_int hport, u_int32_t laddr,
DEBUG_ARG("flags = %x", flags);
if ((so = socreate()) == NULL) {
- /* free(so); Not sofree() ??? free(NULL) == NOP */
return NULL;
}
@@ -668,33 +653,6 @@ struct socket *tcp_listen(u_int32_t haddr, u_int hport, u_int32_t laddr,
return so;
}
-#if 0
-/*
- * Data is available in so_rcv
- * Just write() the data to the socket
- * XXX not yet...
- */
-static void
-sorwakeup(so)
- struct socket *so;
-{
-/* sowrite(so); */
-/* FD_CLR(so->s,&writefds); */
-}
-
-/*
- * Data has been freed in so_snd
- * We have room for a read() if we want to
- * For now, don't read, it'll be done in the main loop
- */
-static void
-sowwakeup(so)
- struct socket *so;
-{
- /* Nothing, yet */
-}
-#endif
-
/*
* Various session state calls
* XXX Should be #define's
@@ -751,16 +709,6 @@ static void sofcantsendmore(struct socket *so)
}
}
-void soisfdisconnected(struct socket *so)
-{
- /* so->so_state &= ~(SS_ISFCONNECTING|SS_ISFCONNECTED); */
- /* close(so->s); */
- /* so->so_state = SS_ISFDISCONNECTED; */
- /*
- * XXX Do nothing ... ?
- */
-}
-
/*
* Set write drain mode
* Set CANTSENDMORE once all data has been write()n