Lines Matching refs:m_notify
1866 struct mbuf *m_notify; in sctp_notify_assoc_change() local
1905 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_assoc_change()
1906 if (m_notify == NULL) in sctp_notify_assoc_change()
1909 m_notify->m_len = 0; in sctp_notify_assoc_change()
1911 sac = mtod(m_notify, struct sctp_assoc_change *); in sctp_notify_assoc_change()
1922 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_assoc_change()
1923 m_notify->m_pkthdr.len = sizeof(struct sctp_assoc_change); in sctp_notify_assoc_change()
1924 m_reset_rcvif(m_notify); in sctp_notify_assoc_change()
1925 m_notify->m_len = sizeof(struct sctp_assoc_change); in sctp_notify_assoc_change()
1926 m_notify->m_next = NULL; in sctp_notify_assoc_change()
1952 to, m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_assoc_change()
1954 sctp_m_freem(m_notify); in sctp_notify_assoc_change()
1976 struct mbuf *m_notify; in sctp_notify_peer_addr_change() local
1985 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_peer_addr_change()
1986 if (m_notify == NULL) in sctp_notify_peer_addr_change()
1988 m_notify->m_len = 0; in sctp_notify_peer_addr_change()
1990 MCLGET(m_notify, M_DONTWAIT); in sctp_notify_peer_addr_change()
1991 if ((m_notify->m_flags & M_EXT) != M_EXT) { in sctp_notify_peer_addr_change()
1992 sctp_m_freem(m_notify); in sctp_notify_peer_addr_change()
1996 spc = mtod(m_notify, struct sctp_paddr_change *); in sctp_notify_peer_addr_change()
2009 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_peer_addr_change()
2010 m_notify->m_pkthdr.len = sizeof(struct sctp_paddr_change); in sctp_notify_peer_addr_change()
2011 m_reset_rcvif(m_notify); in sctp_notify_peer_addr_change()
2012 m_notify->m_len = sizeof(struct sctp_paddr_change); in sctp_notify_peer_addr_change()
2013 m_notify->m_next = NULL; in sctp_notify_peer_addr_change()
2028 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_peer_addr_change()
2029 sctp_m_freem(m_notify); in sctp_notify_peer_addr_change()
2037 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_peer_addr_change()
2039 sctp_m_freem(m_notify); in sctp_notify_peer_addr_change()
2060 struct mbuf *m_notify; in sctp_notify_send_failed() local
2071 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_send_failed()
2072 if (m_notify == NULL) in sctp_notify_send_failed()
2075 m_notify->m_len = 0; in sctp_notify_send_failed()
2076 ssf = mtod(m_notify, struct sctp_send_failed *); in sctp_notify_send_failed()
2092 m_notify->m_next = chk->data; in sctp_notify_send_failed()
2093 if (m_notify->m_next == NULL) in sctp_notify_send_failed()
2094 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_send_failed()
2097 m_notify->m_flags |= M_NOTIFICATION; in sctp_notify_send_failed()
2098 m = m_notify; in sctp_notify_send_failed()
2103 m_notify->m_pkthdr.len = length; in sctp_notify_send_failed()
2104 m_reset_rcvif(m_notify); in sctp_notify_send_failed()
2105 m_notify->m_len = sizeof(struct sctp_send_failed); in sctp_notify_send_failed()
2122 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_send_failed()
2123 sctp_m_freem(m_notify); in sctp_notify_send_failed()
2132 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_send_failed()
2134 sctp_m_freem(m_notify); in sctp_notify_send_failed()
2154 struct mbuf *m_notify; in sctp_notify_adaption_layer() local
2163 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_adaption_layer()
2164 if (m_notify == NULL) in sctp_notify_adaption_layer()
2167 m_notify->m_len = 0; in sctp_notify_adaption_layer()
2168 sai = mtod(m_notify, struct sctp_adaption_event *); in sctp_notify_adaption_layer()
2175 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_adaption_layer()
2176 m_notify->m_pkthdr.len = sizeof(struct sctp_adaption_event); in sctp_notify_adaption_layer()
2177 m_reset_rcvif(m_notify); in sctp_notify_adaption_layer()
2178 m_notify->m_len = sizeof(struct sctp_adaption_event); in sctp_notify_adaption_layer()
2179 m_notify->m_next = NULL; in sctp_notify_adaption_layer()
2193 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_adaption_layer()
2194 sctp_m_freem(m_notify); in sctp_notify_adaption_layer()
2202 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_adaption_layer()
2204 sctp_m_freem(m_notify); in sctp_notify_adaption_layer()
2224 struct mbuf *m_notify; in sctp_notify_partial_delivery_indication() local
2233 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_partial_delivery_indication()
2234 if (m_notify == NULL) in sctp_notify_partial_delivery_indication()
2237 m_notify->m_len = 0; in sctp_notify_partial_delivery_indication()
2238 pdapi = mtod(m_notify, struct sctp_pdapi_event *); in sctp_notify_partial_delivery_indication()
2245 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_partial_delivery_indication()
2246 m_notify->m_pkthdr.len = sizeof(struct sctp_pdapi_event); in sctp_notify_partial_delivery_indication()
2247 m_reset_rcvif(m_notify); in sctp_notify_partial_delivery_indication()
2248 m_notify->m_len = sizeof(struct sctp_pdapi_event); in sctp_notify_partial_delivery_indication()
2249 m_notify->m_next = NULL; in sctp_notify_partial_delivery_indication()
2263 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_partial_delivery_indication()
2264 sctp_m_freem(m_notify); in sctp_notify_partial_delivery_indication()
2272 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_partial_delivery_indication()
2274 sctp_m_freem(m_notify); in sctp_notify_partial_delivery_indication()
2293 struct mbuf *m_notify; in sctp_notify_shutdown_event() local
2313 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_shutdown_event()
2314 if (m_notify == NULL) in sctp_notify_shutdown_event()
2317 m_notify->m_len = 0; in sctp_notify_shutdown_event()
2318 sse = mtod(m_notify, struct sctp_shutdown_event *); in sctp_notify_shutdown_event()
2324 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_shutdown_event()
2325 m_notify->m_pkthdr.len = sizeof(struct sctp_shutdown_event); in sctp_notify_shutdown_event()
2326 m_reset_rcvif(m_notify); in sctp_notify_shutdown_event()
2327 m_notify->m_len = sizeof(struct sctp_shutdown_event); in sctp_notify_shutdown_event()
2328 m_notify->m_next = NULL; in sctp_notify_shutdown_event()
2342 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_shutdown_event()
2343 sctp_m_freem(m_notify); in sctp_notify_shutdown_event()
2351 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_shutdown_event()
2353 sctp_m_freem(m_notify); in sctp_notify_shutdown_event()
2373 struct mbuf *m_notify; in sctp_notify_stream_reset() local
2383 MGETHDR(m_notify, M_DONTWAIT, MT_DATA); in sctp_notify_stream_reset()
2384 if (m_notify == NULL) in sctp_notify_stream_reset()
2387 m_notify->m_len = 0; in sctp_notify_stream_reset()
2389 if (len > M_TRAILINGSPACE(m_notify)) { in sctp_notify_stream_reset()
2390 MCLGET(m_notify, M_WAIT); in sctp_notify_stream_reset()
2392 if (m_notify == NULL) in sctp_notify_stream_reset()
2396 if (len > M_TRAILINGSPACE(m_notify)) { in sctp_notify_stream_reset()
2398 m_freem(m_notify); in sctp_notify_stream_reset()
2401 strreset = mtod(m_notify, struct sctp_stream_reset_event *); in sctp_notify_stream_reset()
2416 m_notify->m_flags |= M_EOR | M_NOTIFICATION; in sctp_notify_stream_reset()
2417 m_notify->m_pkthdr.len = len; in sctp_notify_stream_reset()
2418 m_reset_rcvif(m_notify); in sctp_notify_stream_reset()
2419 m_notify->m_len = len; in sctp_notify_stream_reset()
2420 m_notify->m_next = NULL; in sctp_notify_stream_reset()
2421 if (sctp_sbspace(&stcb->sctp_socket->so_rcv) < m_notify->m_len) { in sctp_notify_stream_reset()
2423 sctp_m_freem(m_notify); in sctp_notify_stream_reset()
2443 m_notify, NULL, stcb->asoc.my_vtag, stcb->sctp_ep)) { in sctp_notify_stream_reset()
2445 sctp_m_freem(m_notify); in sctp_notify_stream_reset()