summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2021-07-25 14:13:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2021-07-25 14:13:48 +0000
commit789cbb6a4129024440138e86c32870978380a5d0 (patch)
tree2fa5c4da328744e3b676d83e5dad4d0c68c1d543 /sys/kern
parent2a9394e8109993c6701127713c1e8926e65c69c3 (diff)
Kill unused sbinsertoob().
ok mvs@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_socket2.c51
1 files changed, 1 insertions, 50 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 69ec14230e6..03306ca908c 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket2.c,v 1.111 2021/06/07 09:10:32 mpi Exp $ */
+/* $OpenBSD: uipc_socket2.c,v 1.112 2021/07/25 14:13:47 mpi Exp $ */
/* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */
/*
@@ -737,55 +737,6 @@ sbappendrecord(struct socket *so, struct sockbuf *sb, struct mbuf *m0)
}
/*
- * As above except that OOB data
- * is inserted at the beginning of the sockbuf,
- * but after any other OOB data.
- */
-void
-sbinsertoob(struct sockbuf *sb, struct mbuf *m0)
-{
- struct mbuf *m, **mp;
-
- if (m0 == NULL)
- return;
-
- SBLASTRECORDCHK(sb, "sbinsertoob 1");
-
- for (mp = &sb->sb_mb; (m = *mp) != NULL; mp = &((*mp)->m_nextpkt)) {
- again:
- switch (m->m_type) {
-
- case MT_OOBDATA:
- continue; /* WANT next train */
-
- case MT_CONTROL:
- if ((m = m->m_next) != NULL)
- goto again; /* inspect THIS train further */
- }
- break;
- }
- /*
- * Put the first mbuf on the queue.
- * Note this permits zero length records.
- */
- sballoc(sb, m0);
- m0->m_nextpkt = *mp;
- if (*mp == NULL) {
- /* m0 is actually the new tail */
- sb->sb_lastrecord = m0;
- }
- *mp = m0;
- m = m0->m_next;
- m0->m_next = NULL;
- if (m && (m0->m_flags & M_EOR)) {
- m0->m_flags &= ~M_EOR;
- m->m_flags |= M_EOR;
- }
- sbcompress(sb, m, m0);
- SBLASTRECORDCHK(sb, "sbinsertoob 2");
-}
-
-/*
* Append address and data, and optionally, control (ancillary) data
* to the receive queue of a socket. If present,
* m0 must include a packet header with total length.