* Append an mbuf containing encrypted TLS data. The data * is marked M_NOTREADY until it has been decrypted and * stored as a TLS record. */
| 932 | * stored as a TLS record. |
| 933 | */ |
| 934 | static void |
| 935 | sbappend_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 | /* |
no test coverage detected