Home
last modified time | relevance | path

Searched refs:sctphdr (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-14.2/sys/netinet/
H A Dsctp_header.h227 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 Dsctp_output.h77 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 Dip_icmp.c288 struct sctphdr *sh; in icmp_error()
291 if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr)) in icmp_error()
293 if (oiphlen + sizeof(struct sctphdr) > n->m_len && in icmp_error()
296 if (n->m_len < oiphlen + sizeof(struct sctphdr) && in icmp_error()
297 (n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL) in icmp_error()
300 icmpelen = max(sizeof(struct sctphdr), in icmp_error()
305 sizeof(struct sctphdr) + 8 && in icmp_error()
306 (n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 || in icmp_error()
308 if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 && in icmp_error()
310 sizeof(struct sctphdr) + 8)) == NULL) in icmp_error()
[all …]
H A Dsctp_input.h42 struct sctphdr *, struct sctp_chunkhdr *,
H A Dsctp_crc32.c122 offset += offsetof(struct sctphdr, checksum); in sctp_delayed_cksum()
H A Dsctputil.h165 struct sctphdr *, struct mbuf *,
177 struct sctphdr *, struct sctp_inpcb *,
H A Dsctp_output.c3987 struct sctphdr *sctphdr; in sctp_lowlevel_chunk_output() local
4158 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output()
4160 sctphdr = (struct sctphdr *)((caddr_t)ip + sizeof(struct ip)); in sctp_lowlevel_chunk_output()
4165 sctphdr->v_tag = v_tag; in sctp_lowlevel_chunk_output()
4166 sctphdr->checksum = 0; in sctp_lowlevel_chunk_output()
4490 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output()
4492 sctphdr = (struct sctphdr *)((caddr_t)ip6h + sizeof(struct ip6_hdr)); in sctp_lowlevel_chunk_output()
4497 sctphdr->v_tag = v_tag; in sctp_lowlevel_chunk_output()
4498 sctphdr->checksum = 0; in sctp_lowlevel_chunk_output()
11114 struct sctphdr *shout; in sctp_send_resp_msg()
[all …]
H A Dsctp_pcb.h517 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
547 struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id);
H A Dsctp_input.c84 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()
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()
5250 struct sctphdr *sh, struct sctp_chunkhdr *ch, in sctp_common_input_processing()
5710 struct sctphdr *sh; in sctp_input_with_port()
5754 sh = (struct sctphdr *)((caddr_t)ip + iphlen); in sctp_input_with_port()
5820 struct sctphdr *sh; in sctp_input()
5832 offset = off + sizeof(struct sctphdr); in sctp_input()
[all …]
H A Dsctp.h46 struct sctphdr { struct
H A Dsctp_cc_functions.c65 (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 Dsctp_var.h318 struct sctphdr;
H A Dsctputil.c4398 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()
7167 sp = m_pullup(sp, sizeof(struct udphdr) + sizeof(struct sctphdr)); in sctp_recv_udp_tunneled_packet()
7223 struct sctphdr *sh; in sctp_recv_icmp_tunneled_packet()
7239 sh = (struct sctphdr *)(udp + 1); in sctp_recv_icmp_tunneled_packet()
7333 struct sctphdr sh; in sctp_recv_icmp6_tunneled_packet()
7359 memset(&sh, 0, sizeof(struct sctphdr)); in sctp_recv_icmp6_tunneled_packet()
7408 sizeof(struct sctphdr) + in sctp_recv_icmp6_tunneled_packet()
7422 sizeof(struct sctphdr), in sctp_recv_icmp6_tunneled_packet()
[all …]
/freebsd-14.2/usr.sbin/traceroute6/
H A Dtraceroute6.c691 minlen = sizeof(struct sctphdr); in main()
1119 struct sctphdr *sctp; in send_probe()
1157 sctp = (struct sctphdr *)outpacket; in send_probe()
1161 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1168 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1181 sizeof(struct sctphdr))); in send_probe()
1188 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1195 sizeof(struct sctphdr) - in send_probe()
1216 sizeof(struct sctphdr) - in send_probe()
1413 struct sctphdr *sctp; in packet_ok()
[all …]
/freebsd-14.2/contrib/traceroute/
H A Dtraceroute.c467 sizeof(struct sctphdr),
1597 struct sctphdr *const sctp = (struct sctphdr *) outp; in sctp_prep()
1604 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1611 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1624 sizeof(struct sctphdr))); in sctp_prep()
1631 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1638 sizeof(struct sctphdr) - in sctp_prep()
1647 (int)(sizeof(struct sctphdr) + in sctp_prep()
1655 (int)(sizeof(struct sctphdr) + in sctp_prep()
1672 struct sctphdr *const sctp = (struct sctphdr *) data; in sctp_check()
[all …]
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw2.c254 #define SCTP(p) ((struct sctphdr *)(p))
525 struct sctphdr *sctp; in ipfw_send_abort()
581 sctp = (struct sctphdr *)(ip + 1); in ipfw_send_abort()
594 sctp = (struct sctphdr *)(ip6 + 1); in ipfw_send_abort()
909 struct sctphdr *sctp; in send_reject6()
1036 struct sctphdr *sctp; in send_reject()
1067 sizeof(struct sctphdr) + in send_reject()
1582 sizeof(struct sctphdr) + in ipfw_chk()
1589 sizeof(struct sctphdr)); in ipfw_chk()
1773 sizeof(struct sctphdr) + in ipfw_chk()
[all …]
H A Dip_fw_log.c79 #define SCTP(p) ((struct sctphdr *)(p))
/freebsd-14.2/sys/netinet6/
H A Dsctp6_usrreq.c66 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-14.2/cddl/lib/libdtrace/
H A Dsctp.d113 struct sctphdr *sctp_hdr; /* raw SCTP header */
158 translator sctpinfo_t < struct sctphdr *p > {
/freebsd-14.2/sys/netinet/libalias/
H A Dalias_sctp.h172 struct sctphdr *sctp_hdr; /**< pointer to sctp common header */
H A Dalias_sctp.c208 … 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-14.2/sys/dev/ice/
H A Dice_common_txrx.h248 *off |= (sizeof(struct sctphdr) >> 2) << in ice_tx_setup_offload()
/freebsd-14.2/sys/netgraph/netflow/
H A Dng_netflow.c815 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
863 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
/freebsd-14.2/sys/dev/iavf/
H A Diavf_txrx_iflib.c239 *off |= (sizeof(struct sctphdr) >> 2) << in iavf_tx_setup_offload()
/freebsd-14.2/sys/netpfil/pf/
H A Dpf_norm.c2058 int chunk_off = sizeof(struct sctphdr); in pf_scan_sctp()
2183 struct sctphdr *sh = &pd->hdr.sctp; in pf_normalize_sctp()
2240 if ((pd->tot_len - off - sizeof(struct sctphdr)) % 4) in pf_normalize_sctp()

12