Home
last modified time | relevance | path

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

12

/freebsd-13-stable/sys/netinet/
HDsctp_header.h226 struct sctphdr sh;
292 struct sctphdr sh;
390 struct sctphdr sh;
530 sizeof(struct sctphdr) + \
536 sizeof(struct sctphdr) + \
540 sizeof(struct sctphdr))
544 sizeof(struct sctphdr) + \
550 sizeof(struct sctphdr) + \
554 sizeof(struct sctphdr))
560 sizeof(struct sctphdr) + \
[all …]
HDsctp_output.h77 struct sctphdr *, struct sctp_init_chunk *,
109 struct sctphdr *,
173 struct sctphdr *, uint32_t, struct mbuf *,
179 struct sctphdr *, uint32_t, struct mbuf *,
HDip_icmp.c289 struct sctphdr *sh; in icmp_error()
292 if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr)) in icmp_error()
294 if (oiphlen + sizeof(struct sctphdr) > n->m_len && in icmp_error()
297 if (n->m_len < oiphlen + sizeof(struct sctphdr) && in icmp_error()
298 (n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL) in icmp_error()
301 icmpelen = max(sizeof(struct sctphdr), in icmp_error()
306 sizeof(struct sctphdr) + 8 && in icmp_error()
307 (n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 || in icmp_error()
309 if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 && in icmp_error()
311 sizeof(struct sctphdr) + 8)) == NULL) in icmp_error()
[all …]
HDsctp_input.h42 struct sctphdr *, struct sctp_chunkhdr *,
HDsctp_crc32.c122 offset += offsetof(struct sctphdr, checksum); in sctp_delayed_cksum()
HDsctputil.h165 struct sctphdr *, struct mbuf *,
177 struct sctphdr *, struct sctp_inpcb *,
HDsctp_output.c3986 struct sctphdr *sctphdr; in sctp_lowlevel_chunk_output() local
4157 sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output()
4159 sctphdr = (struct sctphdr *)((caddr_t)ip + sizeof(struct ip)); in sctp_lowlevel_chunk_output()
4162 sctphdr->src_port = src_port; in sctp_lowlevel_chunk_output()
4163 sctphdr->dest_port = dest_port; in sctp_lowlevel_chunk_output()
4164 sctphdr->v_tag = v_tag; in sctp_lowlevel_chunk_output()
4165 sctphdr->checksum = 0; in sctp_lowlevel_chunk_output()
4203 sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip) + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output()
4210 m->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum); in sctp_lowlevel_chunk_output()
4218 SCTP_PROBE5(send, NULL, stcb, ip, stcb, sctphdr); in sctp_lowlevel_chunk_output()
[all …]
HDsctp_pcb.h516 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
546 struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id);
HDsctp_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()
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()
1956 struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, in sctp_process_cookie_new()
2235 struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp, in sctp_handle_cookie_echo()
4155 } else if (offset + sizeof(struct sctphdr) > limit) { in sctp_handle_packet_dropped()
4161 offset += sizeof(struct sctphdr); in sctp_handle_packet_dropped()
4310 struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, in sctp_process_control()
[all …]
HDsctp.h46 struct sctphdr { struct
HDsctp_cc_functions.c59 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit()
61 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_enforce_cwnd_limit()
62 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_enforce_cwnd_limit()
85 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_set_initial_cc_param()
91 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_set_initial_cc_param()
92 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_set_initial_cc_param()
1382 cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_cwnd_new_rtcc_transmission_begins()
HDsctputil.c4396 struct sctphdr *sh, struct mbuf *op_err, in sctp_abort_association()
4542 struct sctphdr *sh, struct sctp_inpcb *inp, in sctp_handle_ootb()
4617 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()
7218 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()
7348 ip6cp->ip6c_off + sizeof(struct udphdr) + offsetof(struct sctphdr, checksum)) { in sctp_recv_icmp6_tunneled_packet()
7358 memset(&sh, 0, sizeof(struct sctphdr)); in sctp_recv_icmp6_tunneled_packet()
[all …]
HDsctp_var.h318 struct sctphdr;
/freebsd-13-stable/usr.sbin/traceroute6/
HDtraceroute6.c677 minlen = sizeof(struct sctphdr); in main()
1089 struct sctphdr *sctp; in send_probe()
1127 sctp = (struct sctphdr *)outpacket; in send_probe()
1131 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1138 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1151 sizeof(struct sctphdr))); in send_probe()
1158 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1165 sizeof(struct sctphdr) - in send_probe()
1173 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1180 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
[all …]
/freebsd-13-stable/contrib/traceroute/
HDtraceroute.c466 sizeof(struct sctphdr),
1572 struct sctphdr *const sctp = (struct sctphdr *) outp; in sctp_prep()
1579 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1586 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1599 sizeof(struct sctphdr))); in sctp_prep()
1606 if (protlen >= (int)(sizeof(struct sctphdr) + in sctp_prep()
1613 sizeof(struct sctphdr) - in sctp_prep()
1622 (int)(sizeof(struct sctphdr) + in sctp_prep()
1630 (int)(sizeof(struct sctphdr) + in sctp_prep()
1636 (sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr))); in sctp_prep()
[all …]
/freebsd-13-stable/sys/netpfil/ipfw/
HDip_fw2.c252 #define SCTP(p) ((struct sctphdr *)(p))
523 struct sctphdr *sctp; in ipfw_send_abort()
555 plen = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in ipfw_send_abort()
579 sctp = (struct sctphdr *)(ip + 1); in ipfw_send_abort()
592 sctp = (struct sctphdr *)(ip6 + 1); in ipfw_send_abort()
907 struct sctphdr *sctp; in send_reject6()
911 sctp = (struct sctphdr *)((char *)ip6 + hlen); in send_reject6()
915 if (m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6()
932 hlen + sizeof(struct sctphdr) + in send_reject6()
937 if ((m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6()
[all …]
HDip_fw_log.c78 #define SCTP(p) ((struct sctphdr *)(p))
/freebsd-13-stable/sys/netinet6/
HDsctp6_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()
254 struct sctphdr sh; in sctp6_ctlinput()
291 (int32_t)(ip6cp->ip6c_off + offsetof(struct sctphdr, checksum))) { in sctp6_ctlinput()
339 ip6cp->ip6c_off + sizeof(struct sctphdr) + in sctp6_ctlinput()
352 sizeof(struct sctphdr), in sctp6_ctlinput()
357 sizeof(struct sctphdr) + in sctp6_ctlinput()
/freebsd-13-stable/cddl/lib/libdtrace/
HDsctp.d113 struct sctphdr *sctp_hdr; /* raw SCTP header */
158 translator sctpinfo_t < struct sctphdr *p > {
/freebsd-13-stable/sys/netinet/libalias/
HDalias_sctp.h172 struct sctphdr *sctp_hdr; /**< pointer to sctp common header */
HDalias_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-13-stable/sys/dev/ice/
HDice_common_txrx.h248 *off |= (sizeof(struct sctphdr) >> 2) << in ice_tx_setup_offload()
/freebsd-13-stable/sys/netgraph/netflow/
HDng_netflow.c804 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
850 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
/freebsd-13-stable/sys/dev/iavf/
HDiavf_txrx_iflib.c239 *off |= (sizeof(struct sctphdr) >> 2) << in iavf_tx_setup_offload()
/freebsd-13-stable/sys/netpfil/pf/
HDpf_norm.c2019 int chunk_off = sizeof(struct sctphdr); in pf_scan_sctp()
2144 struct sctphdr *sh = &pd->hdr.sctp; in pf_normalize_sctp()
2201 if ((pd->tot_len - off - sizeof(struct sctphdr)) % 4) in pf_normalize_sctp()

12