MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sbappend_ktls_rx

Function sbappend_ktls_rx

freebsd/kern/uipc_sockbuf.c:934–948  ·  view source on GitHub ↗

* Append an mbuf containing encrypted TLS data. The data * is marked M_NOTREADY until it has been decrypted and * stored as a TLS record. */

Source from the content-addressed store, hash-verified

932 * stored as a TLS record.
933 */
934static void
935sbappend_ktls_rx(struct sockbuf *sb, struct mbuf *m)
936{
937 struct mbuf *n;
938
939 SBLASTMBUFCHK(sb);
940
941 /* Remove all packet headers and mbuf tags to get a pure data chain. */
942 m_demote(m, 1, 0);
943
944 for (n = m; n != NULL; n = n->m_next)
945 n->m_flags |= M_NOTREADY;
946 sbcompress_ktls_rx(sb, m, sb->sb_mtlstail);
947 ktls_check_rx(sb);
948}
949#endif
950
951/*

Callers 1

sbappendstream_lockedFunction · 0.85

Calls 3

m_demoteFunction · 0.85
sbcompress_ktls_rxFunction · 0.85
ktls_check_rxFunction · 0.85

Tested by

no test coverage detected