sys/dev/iavf/iavf_txrx_iflib.c
239
*off |= (sizeof(struct sctphdr) >> 2) <<
sys/dev/ice/ice_common_txrx.h
248
*off |= (sizeof(struct sctphdr) >> 2) <<
sys/dev/ixl/ixl_txrx.c
265
*off |= (sizeof(struct sctphdr) >> 2) <<
sys/dev/vnic/nicvf_queues.c
1850
if (mbuf->m_len < (poff + sizeof(struct sctphdr))) {
sys/dev/vnic/nicvf_queues.c
1851
mbuf = m_pullup(mbuf, poff + sizeof(struct sctphdr));
sys/net/pfvar.h
1942
struct sctphdr sctp;
sys/netgraph/netflow/ng_netflow.c
814
M_CHECK(sizeof(struct sctphdr));
sys/netgraph/netflow/ng_netflow.c
862
M_CHECK(sizeof(struct sctphdr));
sys/netinet/ip_icmp.c
285
struct sctphdr *sh;
sys/netinet/ip_icmp.c
288
if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr))
sys/netinet/ip_icmp.c
290
if (oiphlen + sizeof(struct sctphdr) > n->m_len &&
sys/netinet/ip_icmp.c
293
if (n->m_len < oiphlen + sizeof(struct sctphdr) &&
sys/netinet/ip_icmp.c
294
(n = m_pullup(n, oiphlen + sizeof(struct sctphdr))) == NULL)
sys/netinet/ip_icmp.c
297
icmpelen = max(sizeof(struct sctphdr),
sys/netinet/ip_icmp.c
302
sizeof(struct sctphdr) + 8 &&
sys/netinet/ip_icmp.c
303
(n->m_len >= oiphlen + sizeof(struct sctphdr) + 8 ||
sys/netinet/ip_icmp.c
305
if (n->m_len < oiphlen + sizeof(struct sctphdr) + 8 &&
sys/netinet/ip_icmp.c
307
sizeof(struct sctphdr) + 8)) == NULL)
sys/netinet/ip_icmp.c
313
icmpelen = max(sizeof(struct sctphdr) + 8,
sys/netinet/libalias/alias_sctp.c
1053
struct sctphdr *sctp_hdr;
sys/netinet/libalias/alias_sctp.c
1080
if (bytes_left < sizeof(struct sctphdr)) {
sys/netinet/libalias/alias_sctp.c
1085
sm->sctp_hdr = sctp_hdr = (struct sctphdr *) ip_next(pip);
sys/netinet/libalias/alias_sctp.c
1086
bytes_left -= sizeof(struct sctphdr);
sys/netinet/libalias/alias_sctp.c
208
#define SN_SCTP_FIRSTCHUNK(sctphead) (struct sctp_chunkhdr *)(((char *)sctphead) + sizeof(struct sctphdr))
sys/netinet/libalias/alias_sctp.c
933
int sctp_size = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr) + sizeof(struct sctp_error_cause);
sys/netinet/libalias/alias_sctp.c
946
struct sctphdr* sctp_hdr = (struct sctphdr *) ((char *) ip + sizeof(*ip));
sys/netinet/libalias/alias_sctp.h
172
struct sctphdr *sctp_hdr; /**< pointer to sctp common header */
sys/netinet/sctp_cc_functions.c
1382
cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu;
sys/netinet/sctp_cc_functions.c
59
(net->cwnd > (net->mtu - sizeof(struct sctphdr)))) {
sys/netinet/sctp_cc_functions.c
61
if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) {
sys/netinet/sctp_cc_functions.c
62
net->cwnd = net->mtu - sizeof(struct sctphdr);
sys/netinet/sctp_cc_functions.c
85
net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu;
sys/netinet/sctp_cc_functions.c
91
if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) {
sys/netinet/sctp_cc_functions.c
92
net->cwnd = net->mtu - sizeof(struct sctphdr);
sys/netinet/sctp_crc32.c
121
offset += offsetof(struct sctphdr, checksum);
sys/netinet/sctp_header.h
227
struct sctphdr sh;
sys/netinet/sctp_header.h
293
struct sctphdr sh;
sys/netinet/sctp_header.h
391
struct sctphdr sh;
sys/netinet/sctp_header.h
538
sizeof(struct sctphdr) + \
sys/netinet/sctp_header.h
544
sizeof(struct sctphdr) + \
sys/netinet/sctp_header.h
548
sizeof(struct sctphdr))
sys/netinet/sctp_header.h
552
sizeof(struct sctphdr) + \
sys/netinet/sctp_header.h
558
sizeof(struct sctphdr) + \
sys/netinet/sctp_header.h
562
sizeof(struct sctphdr))
sys/netinet/sctp_header.h
568
sizeof(struct sctphdr) + \
sys/netinet/sctp_header.h
572
sizeof(struct sctphdr))
sys/netinet/sctp_input.c
1245
struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh,
sys/netinet/sctp_input.c
1333
struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len,
sys/netinet/sctp_input.c
1349
struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len,
sys/netinet/sctp_input.c
1957
struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len,
sys/netinet/sctp_input.c
2237
struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp,
sys/netinet/sctp_input.c
390
struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh,
sys/netinet/sctp_input.c
4157
} else if (offset + sizeof(struct sctphdr) > limit) {
sys/netinet/sctp_input.c
4163
offset += sizeof(struct sctphdr);
sys/netinet/sctp_input.c
4312
struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp,
sys/netinet/sctp_input.c
5250
struct sctphdr *sh, struct sctp_chunkhdr *ch,
sys/netinet/sctp_input.c
5710
struct sctphdr *sh;
sys/netinet/sctp_input.c
5746
offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
sys/netinet/sctp_input.c
5754
sh = (struct sctphdr *)((caddr_t)ip + iphlen);
sys/netinet/sctp_input.c
5755
ch = (struct sctp_chunkhdr *)((caddr_t)sh + sizeof(struct sctphdr));
sys/netinet/sctp_input.c
5824
struct sctphdr *sh;
sys/netinet/sctp_input.c
5836
offset = off + sizeof(struct sctphdr);
sys/netinet/sctp_input.c
5844
sh = (struct sctphdr *)((caddr_t)ip + off);
sys/netinet/sctp_input.c
84
struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh,
sys/netinet/sctp_input.h
42
struct sctphdr *, struct sctp_chunkhdr *,
sys/netinet/sctp_output.c
11105
struct sctphdr *sh, uint32_t vtag,
sys/netinet/sctp_output.c
11112
struct sctphdr *shout;
sys/netinet/sctp_output.c
11151
len = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
sys/netinet/sctp_output.c
11211
shout = (struct sctphdr *)((caddr_t)ip + len);
sys/netinet/sctp_output.c
11232
shout = (struct sctphdr *)((caddr_t)ip6 + len);
sys/netinet/sctp_output.c
11237
shout = mtod(mout, struct sctphdr *);
sys/netinet/sctp_output.c
11251
sizeof(struct sctphdr) +
sys/netinet/sctp_output.c
11255
shout = (struct sctphdr *)((caddr_t)shout + sizeof(struct udphdr));
sys/netinet/sctp_output.c
11268
len += sizeof(struct sctphdr);
sys/netinet/sctp_output.c
11269
ch = (struct sctp_chunkhdr *)((caddr_t)shout + sizeof(struct sctphdr));
sys/netinet/sctp_output.c
11304
mout->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum);
sys/netinet/sctp_output.c
11327
mout->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum);
sys/netinet/sctp_output.c
11361
struct sctphdr *sh,
sys/netinet/sctp_output.c
11580
offset = iphlen + sizeof(struct sctphdr);
sys/netinet/sctp_output.c
11633
sizeof(struct sctphdr) + SCTP_MED_OVERHEAD));
sys/netinet/sctp_output.c
12364
struct sctphdr *sh, uint32_t vtag, struct mbuf *cause,
sys/netinet/sctp_output.c
12382
struct sctphdr *sh, uint32_t vtag, struct mbuf *cause,
sys/netinet/sctp_output.c
3985
struct sctphdr *sctphdr;
sys/netinet/sctp_output.c
4156
sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr));
sys/netinet/sctp_output.c
4158
sctphdr = (struct sctphdr *)((caddr_t)ip + sizeof(struct ip));
sys/netinet/sctp_output.c
4161
sctphdr->src_port = src_port;
sys/netinet/sctp_output.c
4162
sctphdr->dest_port = dest_port;
sys/netinet/sctp_output.c
4163
sctphdr->v_tag = v_tag;
sys/netinet/sctp_output.c
4164
sctphdr->checksum = 0;
sys/netinet/sctp_output.c
4205
sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip) + sizeof(struct udphdr));
sys/netinet/sctp_output.c
4216
m->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum);
sys/netinet/sctp_output.c
4225
SCTP_PROBE5(send, NULL, stcb, ip, stcb, sctphdr);
sys/netinet/sctp_output.c
4488
sctphdr = (struct sctphdr *)((caddr_t)udp + sizeof(struct udphdr));
sys/netinet/sctp_output.c
4490
sctphdr = (struct sctphdr *)((caddr_t)ip6h + sizeof(struct ip6_hdr));
sys/netinet/sctp_output.c
4493
sctphdr->src_port = src_port;
sys/netinet/sctp_output.c
4494
sctphdr->dest_port = dest_port;
sys/netinet/sctp_output.c
4495
sctphdr->v_tag = v_tag;
sys/netinet/sctp_output.c
4496
sctphdr->checksum = 0;
sys/netinet/sctp_output.c
4534
sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip6_hdr) + sizeof(struct udphdr));
sys/netinet/sctp_output.c
4541
m->m_pkthdr.csum_data = offsetof(struct sctphdr, checksum);
sys/netinet/sctp_output.c
4549
SCTP_PROBE5(send, NULL, stcb, ip6h, stcb, sctphdr);
sys/netinet/sctp_output.c
5124
SCTP_BUF_RESV_UF(op_err, sizeof(struct sctphdr));
sys/netinet/sctp_output.c
5167
SCTP_BUF_RESV_UF(op_err, sizeof(struct sctphdr));
sys/netinet/sctp_output.c
5258
SCTP_BUF_RESV_UF(op_err, sizeof(struct sctphdr));
sys/netinet/sctp_output.c
5500
struct sctphdr *sh, struct sctp_init_chunk *init_chk,
sys/netinet/sctp_output.h
111
struct sctphdr *,
sys/netinet/sctp_output.h
175
struct sctphdr *, uint32_t, struct mbuf *,
sys/netinet/sctp_output.h
181
struct sctphdr *, uint32_t, struct mbuf *,
sys/netinet/sctp_output.h
77
struct sctphdr *, struct sctp_init_chunk *,
sys/netinet/sctp_pcb.c
1906
struct sctphdr *sh, struct sctp_inpcb **inp_p, struct sctp_nets **netp,
sys/netinet/sctp_pcb.c
2100
struct sctphdr *sh, struct sctp_chunkhdr *ch,
sys/netinet/sctp_pcb.c
2159
struct sockaddr *dst, struct sctphdr *sh,
sys/netinet/sctp_pcb.h
517
struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
sys/netinet/sctp_pcb.h
547
struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id);
sys/netinet/sctp_usrreq.c
263
struct sctphdr *sh;
sys/netinet/sctp_usrreq.c
275
sh = (struct sctphdr *)((caddr_t)inner_ip + (inner_ip->ip_hl << 2));
sys/netinet/sctp_usrreq.c
6814
(net->cwnd > (net->mtu - sizeof(struct sctphdr)))) {
sys/netinet/sctp_usrreq.c
6816
if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) {
sys/netinet/sctp_usrreq.c
6817
net->cwnd = net->mtu - sizeof(struct sctphdr);
sys/netinet/sctp_var.h
318
struct sctphdr;
sys/netinet/sctputil.c
4398
struct sctphdr *sh, struct mbuf *op_err,
sys/netinet/sctputil.c
4544
struct sctphdr *sh, struct sctp_inpcb *inp,
sys/netinet/sctputil.c
4619
offset = iphlen + sizeof(struct sctphdr);
sys/netinet/sctputil.c
7159
if (sp->m_pkthdr.len < sizeof(struct udphdr) + sizeof(struct sctphdr)) {
sys/netinet/sctputil.c
7165
sp = m_pullup(sp, sizeof(struct udphdr) + sizeof(struct sctphdr));
sys/netinet/sctputil.c
7221
struct sctphdr *sh;
sys/netinet/sctputil.c
7237
sh = (struct sctphdr *)(udp + 1);
sys/netinet/sctputil.c
7331
struct sctphdr sh;
sys/netinet/sctputil.c
7347
ip6cp->ip6c_off + sizeof(struct udphdr) + offsetof(struct sctphdr, checksum)) {
sys/netinet/sctputil.c
7357
memset(&sh, 0, sizeof(struct sctphdr));
sys/netinet/sctputil.c
7406
sizeof(struct sctphdr) +
sys/netinet/sctputil.c
7420
sizeof(struct sctphdr),
sys/netinet/sctputil.c
7426
sizeof(struct sctphdr) +
sys/netinet/sctputil.h
165
struct sctphdr *, struct mbuf *,
sys/netinet/sctputil.h
177
struct sctphdr *, struct sctp_inpcb *,
sys/netinet6/sctp6_usrreq.c
102
offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
sys/netinet6/sctp6_usrreq.c
111
sh = (struct sctphdr *)(mtod(m, caddr_t)+iphlen);
sys/netinet6/sctp6_usrreq.c
112
ch = (struct sctp_chunkhdr *)((caddr_t)sh + sizeof(struct sctphdr));
sys/netinet6/sctp6_usrreq.c
257
struct sctphdr sh;
sys/netinet6/sctp6_usrreq.c
269
(int32_t)(ip6cp->ip6c_off + offsetof(struct sctphdr, checksum))) {
sys/netinet6/sctp6_usrreq.c
316
ip6cp->ip6c_off + sizeof(struct sctphdr) +
sys/netinet6/sctp6_usrreq.c
329
sizeof(struct sctphdr),
sys/netinet6/sctp6_usrreq.c
334
sizeof(struct sctphdr) +
sys/netinet6/sctp6_usrreq.c
66
struct sctphdr *sh;
sys/netpfil/ipfw/ip_fw2.c
1031
struct sctphdr *sctp;
sys/netpfil/ipfw/ip_fw2.c
1037
sctp = L3HDR(struct sctphdr, mtod(args->m, struct ip *));
sys/netpfil/ipfw/ip_fw2.c
1040
if (iplen >= (ip->ip_hl << 2) + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1056
(ip->ip_hl << 2) + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1062
sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1630
if (pktlen >= hlen + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1634
sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1637
else if (pktlen >= hlen + sizeof(struct sctphdr))
sys/netpfil/ipfw/ip_fw2.c
1641
sizeof(struct sctphdr));
sys/netpfil/ipfw/ip_fw2.c
1827
if (pktlen >= hlen + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1831
sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
1834
else if (pktlen >= hlen + sizeof(struct sctphdr))
sys/netpfil/ipfw/ip_fw2.c
1838
sizeof(struct sctphdr));
sys/netpfil/ipfw/ip_fw2.c
257
#define SCTP(p) ((struct sctphdr *)(p))
sys/netpfil/ipfw/ip_fw2.c
528
struct sctphdr *sctp;
sys/netpfil/ipfw/ip_fw2.c
560
plen = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
sys/netpfil/ipfw/ip_fw2.c
584
sctp = (struct sctphdr *)(ip + 1);
sys/netpfil/ipfw/ip_fw2.c
597
sctp = (struct sctphdr *)(ip6 + 1);
sys/netpfil/ipfw/ip_fw2.c
913
const struct sctphdr *sctp;
sys/netpfil/ipfw/ip_fw2.c
917
sctp = (const struct sctphdr *)((const char *)ip6 + hlen);
sys/netpfil/ipfw/ip_fw2.c
921
if (m->m_len >= hlen + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
938
hlen + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw2.c
943
if ((m->m_len >= hlen + sizeof(struct sctphdr) +
sys/netpfil/ipfw/ip_fw_log.c
82
#define SCTP(p) ((struct sctphdr *)(p))
sys/netpfil/pf/pf.c
11090
pd->proto == IPPROTO_SCTP ? sizeof(struct sctphdr) :
sys/netpfil/pf/pf.c
4612
struct sctphdr *hdr;
sys/netpfil/pf/pf.c
4678
off += sizeof(struct sctphdr);
sys/netpfil/pf/pf.c
830
m_copyback(m, off + offsetof(struct sctphdr, checksum),
sys/netpfil/pf/pf.c
835
m_copyback(m, off + offsetof(struct sctphdr, checksum),
sys/netpfil/pf/pf.c
9203
struct sctphdr *sh = &pd2.hdr.sctp;
sys/netpfil/pf/pf.c
923
struct sctphdr *sh = &pd->hdr.sctp;
sys/netpfil/pf/pf_norm.c
2019
int chunk_off = sizeof(struct sctphdr);
sys/netpfil/pf/pf_norm.c
2151
struct sctphdr *sh = &pd->hdr.sctp;
sys/netpfil/pf/pf_norm.c
2203
if ((pd->tot_len - pd->off - sizeof(struct sctphdr)) % 4)
usr.sbin/traceroute/traceroute.c
1520
struct sctphdr *const sctp = (struct sctphdr *) outp;
usr.sbin/traceroute/traceroute.c
1527
if (protlen >= (int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
1534
if (protlen >= (int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
1547
sizeof(struct sctphdr)));
usr.sbin/traceroute/traceroute.c
1554
if (protlen >= (int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
1561
sizeof(struct sctphdr) -
usr.sbin/traceroute/traceroute.c
1570
(int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
1578
(int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
1584
(sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr)));
usr.sbin/traceroute/traceroute.c
1595
struct sctphdr *const sctp = (struct sctphdr *) data;
usr.sbin/traceroute/traceroute.c
1600
if (protlen < (int)(sizeof(struct sctphdr) +
usr.sbin/traceroute/traceroute.c
438
sizeof(struct sctphdr),
usr.sbin/traceroute6/traceroute6.c
1111
struct sctphdr *sctp;
usr.sbin/traceroute6/traceroute6.c
1149
sctp = (struct sctphdr *)outpacket;
usr.sbin/traceroute6/traceroute6.c
1153
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
1160
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
1173
sizeof(struct sctphdr)));
usr.sbin/traceroute6/traceroute6.c
1180
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
1187
sizeof(struct sctphdr) -
usr.sbin/traceroute6/traceroute6.c
1195
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
1202
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
1208
sizeof(struct sctphdr) -
usr.sbin/traceroute6/traceroute6.c
1405
struct sctphdr *sctp;
usr.sbin/traceroute6/traceroute6.c
1431
sctp = (struct sctphdr *)up;
usr.sbin/traceroute6/traceroute6.c
1436
if (datalen >= (u_long)(sizeof(struct sctphdr) +
usr.sbin/traceroute6/traceroute6.c
677
minlen = sizeof(struct sctphdr);