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