/freebsd/sys/netinet/ |
H A D | sctp_header.h | 227 struct sctphdr sh; 293 struct sctphdr sh; 391 struct sctphdr sh; 538 sizeof(struct sctphdr) + \ 544 sizeof(struct sctphdr) + \ 548 sizeof(struct sctphdr)) 552 sizeof(struct sctphdr) + \ 558 sizeof(struct sctphdr) + \ 562 sizeof(struct sctphdr)) 568 sizeof(struct sctphdr) + \ [all …]
|
H A D | sctp_output.h | 77 struct sctphdr *, struct sctp_init_chunk *, 111 struct sctphdr *, 175 struct sctphdr *, uint32_t, struct mbuf *, 181 struct sctphdr *, uint32_t, struct mbuf *,
|
H A D | ip_icmp.c | 286 struct sctphdr *sh; in icmp_error() 289 if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr)) in icmp_error() 291 if (oiphlen + sizeof(struct sctphdr) > n->m_len && in icmp_error() 294 if (n->m_len < oiphlen + sizeof(struct sctphdr) && in icmp_error() 295 (n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL) in icmp_error() 298 icmpelen = max(sizeof(struct sctphdr), in icmp_error() 303 sizeof(struct sctphdr) + 8 && in icmp_error() 304 (n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 || in icmp_error() 306 if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 && in icmp_error() 308 sizeof(struct sctphdr) + 8)) == NULL) in icmp_error() [all …]
|
H A D | sctp_input.h | 42 struct sctphdr *, struct sctp_chunkhdr *,
|
H A D | sctputil.h | 165 struct sctphdr *, struct mbuf *, 177 struct sctphdr *, struct sctp_inpcb *,
|
H A D | sctp_crc32.c | 122 offset += offsetof(struct sctphdr, checksum); in sctp_delayed_cksum()
|
H A D | sctp_output.c | 3985 struct sctphdr *sctphdr; in sctp_lowlevel_chunk_output() local 4156 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output() 4158 sctphdr = (struct sctphdr *)((caddr_t)ip + sizeof(struct ip)); in sctp_lowlevel_chunk_output() 4161 sctphdr->src_port = src_port; in sctp_lowlevel_chunk_output() 4162 sctphdr->dest_port = dest_port; in sctp_lowlevel_chunk_output() 4163 sctphdr->v_tag = v_tag; in sctp_lowlevel_chunk_output() 4164 sctphdr->checksum = 0; in sctp_lowlevel_chunk_output() 4205 sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip) + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output() 4216 m->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum); in sctp_lowlevel_chunk_output() 4225 SCTP_PROBE5(send, NULL, stcb, ip, stcb, sctphdr); in sctp_lowlevel_chunk_output() [all …]
|
H A D | sctp_pcb.h | 517 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **, 547 struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id);
|
H A D | sctp_input.c | 84 struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, in sctp_handle_init() 390 struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, in sctp_process_init_ack() 1245 struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, in sctp_handle_init_ack() 1333 struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, 1349 struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, in sctp_process_cookie_existing() 1957 struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, in sctp_process_cookie_new() 2237 struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp, in sctp_handle_cookie_echo() 4157 } else if (offset + sizeof(struct sctphdr) > limit) { in sctp_handle_packet_dropped() 4163 offset += sizeof(struct sctphdr); in sctp_handle_packet_dropped() 4312 struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, in sctp_process_control() [all …]
|
H A D | sctp_cc_functions.c | 65 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit() 67 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_enforce_cwnd_limit() 68 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_enforce_cwnd_limit() 91 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_set_initial_cc_param() 97 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_set_initial_cc_param() 98 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_set_initial_cc_param() 1388 cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_cwnd_new_rtcc_transmission_begins()
|
H A D | sctp.h | 45 struct sctphdr { struct
|
H A D | sctputil.c | 4398 struct sctphdr *sh, struct mbuf *op_err, in sctp_abort_association() 4544 struct sctphdr *sh, struct sctp_inpcb *inp, in sctp_handle_ootb() 4619 offset = iphlen + sizeof(struct sctphdr); in sctp_is_there_an_abort_here() 7159 if (sp->m_pkthdr.len < sizeof(struct udphdr) + sizeof(struct sctphdr)) { in sctp_recv_udp_tunneled_packet() 7165 sp = m_pullup(sp, sizeof(struct udphdr) + sizeof(struct sctphdr)); in sctp_recv_udp_tunneled_packet() 7221 struct sctphdr *sh; in sctp_recv_icmp_tunneled_packet() 7237 sh = (struct sctphdr *)(udp + 1); in sctp_recv_icmp_tunneled_packet() 7331 struct sctphdr sh; in sctp_recv_icmp6_tunneled_packet() 7347 ip6cp->ip6c_off + sizeof(struct udphdr) + offsetof(struct sctphdr, checksum)) { in sctp_recv_icmp6_tunneled_packet() 7357 memset(&sh, 0, sizeof(struct sctphdr)); in sctp_recv_icmp6_tunneled_packet() [all …]
|
H A D | sctp_var.h | 318 struct sctphdr;
|
/freebsd/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 677 minlen = sizeof(struct sctphdr); in main() 1105 struct sctphdr *sctp; in send_probe() 1143 sctp = (struct sctphdr *)outpacket; in send_probe() 1147 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe() 1154 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe() 1167 sizeof(struct sctphdr))); in send_probe() 1174 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe() 1181 sizeof(struct sctphdr) - in send_probe() 1189 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe() 1196 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe() [all …]
|
/freebsd/usr.sbin/traceroute/ |
H A D | traceroute.c | 438 sizeof(struct sctphdr), 1520 struct sctphdr *const sctp = (struct sctphdr *) outp; in sctp_prep() 1527 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep() 1534 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep() 1547 sizeof(struct sctphdr))); in sctp_prep() 1554 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep() 1561 sizeof(struct sctphdr) - in sctp_prep() 1570 (int)(sizeof(struct sctphdr) + in sctp_prep() 1578 (int)(sizeof(struct sctphdr) + in sctp_prep() 1584 (sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr))); in sctp_prep() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw2.c | 256 #define SCTP(p) ((struct sctphdr *)(p)) 527 struct sctphdr *sctp; in ipfw_send_abort() 559 plen = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in ipfw_send_abort() 583 sctp = (struct sctphdr *)(ip + 1); in ipfw_send_abort() 596 sctp = (struct sctphdr *)(ip6 + 1); in ipfw_send_abort() 912 const struct sctphdr *sctp; in send_reject6() 916 sctp = (const struct sctphdr *)((const char *)ip6 + hlen); in send_reject6() 920 if (m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6() 937 hlen + sizeof(struct sctphdr) + in send_reject6() 942 if ((m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6() [all …]
|
H A D | ip_fw_log.c | 82 #define SCTP(p) ((struct sctphdr *)(p))
|
/freebsd/sys/netinet6/ |
H A D | sctp6_usrreq.c | 66 struct sctphdr *sh; in sctp6_input_with_port() 102 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in sctp6_input_with_port() 111 sh = (struct sctphdr *)(mtod(m, caddr_t)+iphlen); in sctp6_input_with_port() 112 ch = (struct sctp_chunkhdr *)((caddr_t)sh + sizeof(struct sctphdr)); in sctp6_input_with_port() 253 struct sctphdr sh; in sctp6_ctlinput() 265 (int32_t)(ip6cp->ip6c_off + offsetof(struct sctphdr, checksum))) { in sctp6_ctlinput() 312 ip6cp->ip6c_off + sizeof(struct sctphdr) + in sctp6_ctlinput() 325 sizeof(struct sctphdr), in sctp6_ctlinput() 330 sizeof(struct sctphdr) + in sctp6_ctlinput()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | sctp.d | 113 struct sctphdr *sctp_hdr; /* raw SCTP header */ 158 translator sctpinfo_t < struct sctphdr *p > {
|
/freebsd/sys/netinet/libalias/ |
H A D | alias_sctp.h | 172 struct sctphdr *sctp_hdr; /**< pointer to sctp common header */
|
H A D | alias_sctp.c | 208 … SN_SCTP_FIRSTCHUNK(sctphead) (struct sctp_chunkhdr *)(((char *)sctphead) + sizeof(struct sctphdr)) 933 …int sctp_size = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr) + sizeof(struct sctp_error_c… in TxAbortErrorM() 946 struct sctphdr* sctp_hdr = (struct sctphdr *) ((char *) ip + sizeof(*ip)); in TxAbortErrorM() 1053 struct sctphdr *sctp_hdr; in sctp_PktParser() 1080 if (bytes_left < sizeof(struct sctphdr)) { in sctp_PktParser() 1085 sm->sctp_hdr = sctp_hdr = (struct sctphdr *) ip_next(pip); in sctp_PktParser() 1086 bytes_left -= sizeof(struct sctphdr); in sctp_PktParser()
|
/freebsd/sys/dev/ice/ |
H A D | ice_common_txrx.h | 248 *off |= (sizeof(struct sctphdr) >> 2) << in ice_tx_setup_offload()
|
/freebsd/sys/netgraph/netflow/ |
H A D | ng_netflow.c | 815 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata() 863 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_txrx_iflib.c | 239 *off |= (sizeof(struct sctphdr) >> 2) << in iavf_tx_setup_offload()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_norm.c | 1992 int chunk_off = sizeof(struct sctphdr); in pf_scan_sctp() 2124 struct sctphdr *sh = &pd->hdr.sctp; in pf_normalize_sctp() 2176 if ((pd->tot_len - pd->off - sizeof(struct sctphdr)) % 4) in pf_normalize_sctp()
|