Home
last modified time | relevance | path

Searched refs:SCTP_PAD4 (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/net/sctp/
Doutput.c234 pkt->size += SCTP_PAD4(ntohs(pad->chunk_hdr->length)); in sctp_packet_bundle_pad()
331 __u16 chunk_len = SCTP_PAD4(ntohs(chunk->chunk_hdr->length)); in __sctp_packet_append_chunk()
461 int padded = SCTP_PAD4(chunk->skb->len); in sctp_packet_pack()
492 padding = SCTP_PAD4(chunk->skb->len) - chunk->skb->len; in sctp_packet_pack()
510 pkt_size -= SCTP_PAD4(chunk->skb->len); in sctp_packet_pack()
830 maxsize -= SCTP_PAD4(packet->auth->skb->len); in sctp_packet_will_fit()
Dchunk.c190 max_data -= SCTP_PAD4(sizeof(struct sctp_auth_chunk) + in sctp_datamsg_from_user()
218 first_len -= SCTP_PAD4(sizeof(struct sctp_sack_chunk)); in sctp_datamsg_from_user()
Dsm_make_chunk.c246 chunksize += SCTP_PAD4(SCTP_SAT_LEN(num_types)); in sctp_make_init()
288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init()
295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init()
305 chunksize += SCTP_PAD4(sizeof(ext_param) + num_ext); in sctp_make_init()
454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack()
460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init_ack()
469 chunksize += SCTP_PAD4(sizeof(ext_param) + num_ext); in sctp_make_init_ack()
1438 chunklen = SCTP_PAD4(sizeof(*chunk_hdr) + paylen); in _sctp_make_chunk()
1539 int padlen = SCTP_PAD4(chunklen) - chunklen; in sctp_addto_chunk()
1931 len = SCTP_PAD4(sizeof(report)); in sctp_process_missing_param()
[all …]
Dinqueue.c201 chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_inq_pop()
Dinput.c697 ch_end = offset + SCTP_PAD4(ntohs(ch->length)); in sctp_rcv_ootb()
1245 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in __sctp_rcv_walk_lookup()
1316 if (SCTP_PAD4(ntohs(ch->length)) > skb->len) in __sctp_rcv_lookup_harder()
Dulpevent.c387 elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch); in sctp_ulpevent_make_remote_error()
725 padding = SCTP_PAD4(datalen) - datalen; in sctp_ulpevent_make_rcvmsg()
Dsm_statefuns.c3706 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_sf_ootb()
4550 SCTP_PAD4(ntohs(hdr->length)), in sctp_sf_unk_chunk()
4568 SCTP_PAD4(ntohs(hdr->length)), in sctp_sf_unk_chunk()
/linux-6.6.21/net/netfilter/
Dxt_sctp.c71 offset += SCTP_PAD4(ntohs(sch->length)); in match_packet()
Dnft_exthdr.c403 offset += SCTP_PAD4(ntohs(sch->length)); in nft_exthdr_sctp_eval()
/linux-6.6.21/include/net/sctp/
Dsctp.h435 pos.v += SCTP_PAD4(ntohs(pos.p->length)))
447 err = (struct sctp_errhdr *)((void *)err + SCTP_PAD4(ntohs(err->length))))
/linux-6.6.21/include/linux/
Dsctp.h824 #define SCTP_PAD4(s) (((s)+3)&~3) macro