Home
last modified time | relevance | path

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

12

/freebsd-14-stable/sys/netinet/
HDsctp_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 …]
HDsctp_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 *,
HDip_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 …]
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.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()
4163 sctphdr->src_port = src_port; in sctp_lowlevel_chunk_output()
4164 sctphdr->dest_port = dest_port; 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()
4207 sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip) + sizeof(struct udphdr)); in sctp_lowlevel_chunk_output()
4218 m->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum); in sctp_lowlevel_chunk_output()
4227 SCTP_PROBE5(send, NULL, stcb, ip, stcb, sctphdr); in sctp_lowlevel_chunk_output()
[all …]
HDsctp_pcb.h517 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
547 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()
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 …]
HDsctp.h46 struct sctphdr { struct
HDsctp_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()
HDsctputil.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()
7161 if (sp->m_pkthdr.len < sizeof(struct udphdr) + sizeof(struct sctphdr)) { in sctp_recv_udp_tunneled_packet()
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()
7349 ip6cp->ip6c_off + sizeof(struct udphdr) + offsetof(struct sctphdr, checksum)) { in sctp_recv_icmp6_tunneled_packet()
7359 memset(&sh, 0, sizeof(struct sctphdr)); in sctp_recv_icmp6_tunneled_packet()
[all …]
HDsctp_var.h318 struct sctphdr;
/freebsd-14-stable/usr.sbin/traceroute6/
HDtraceroute6.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()
1203 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
1210 if (datalen >= (u_long)(sizeof(struct sctphdr) + in send_probe()
[all …]
/freebsd-14-stable/contrib/traceroute/
HDtraceroute.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()
1661 (sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr))); in sctp_prep()
[all …]
/freebsd-14-stable/sys/netpfil/ipfw/
HDip_fw2.c254 #define SCTP(p) ((struct sctphdr *)(p))
525 struct sctphdr *sctp; in ipfw_send_abort()
557 plen = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); 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()
913 sctp = (struct sctphdr *)((char *)ip6 + hlen); in send_reject6()
917 if (m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6()
934 hlen + sizeof(struct sctphdr) + in send_reject6()
939 if ((m->m_len >= hlen + sizeof(struct sctphdr) + in send_reject6()
[all …]
HDip_fw_log.c79 #define SCTP(p) ((struct sctphdr *)(p))
/freebsd-14-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()
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-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-14-stable/sys/dev/ice/
HDice_common_txrx.h248 *off |= (sizeof(struct sctphdr) >> 2) << in ice_tx_setup_offload()
/freebsd-14-stable/sys/netgraph/netflow/
HDng_netflow.c815 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
863 M_CHECK(sizeof(struct sctphdr)); in ng_netflow_rcvdata()
/freebsd-14-stable/sys/dev/iavf/
HDiavf_txrx_iflib.c239 *off |= (sizeof(struct sctphdr) >> 2) << in iavf_tx_setup_offload()
/freebsd-14-stable/sys/netpfil/pf/
HDpf_norm.c2061 int chunk_off = sizeof(struct sctphdr); in pf_scan_sctp()
2194 struct sctphdr *sh = &pd->hdr.sctp; in pf_normalize_sctp()
2251 if ((pd->tot_len - off - sizeof(struct sctphdr)) % 4) in pf_normalize_sctp()
/freebsd-14-stable/sys/dev/ixl/
HDixl_txrx.c265 *off |= (sizeof(struct sctphdr) >> 2) << in ixl_tx_setup_offload()

12