Searched refs:padded_size (Results 1 – 2 of 2) sorted by relevance
4940 uint16_t ptype, plen, padded_size; in sctp_arethere_unrecognized_parameters() local4973 padded_size = SCTP_SIZE32(plen); in sctp_arethere_unrecognized_parameters()4980 at += padded_size; in sctp_arethere_unrecognized_parameters()4986 at += padded_size; in sctp_arethere_unrecognized_parameters()4991 …if (padded_size > (sizeof(struct sctp_supported_chunk_types_param) + (sizeof(uint8_t) * SCTP_MAX_S… in sctp_arethere_unrecognized_parameters()4995 at += padded_size; in sctp_arethere_unrecognized_parameters()4998 if (padded_size > SCTP_MAX_ADDR_PARAMS_SIZE) { in sctp_arethere_unrecognized_parameters()5002 at += padded_size; in sctp_arethere_unrecognized_parameters()5005 if (padded_size != sizeof(struct sctp_zero_checksum_acceptable)) { in sctp_arethere_unrecognized_parameters()5018 at += padded_size; in sctp_arethere_unrecognized_parameters()[all …]
1461 unsigned int padded_size, last_unit = pkt->p_mbuf->m_pkthdr.len; in calculate_padding() local1465 padded_size = (last_unit + (WG_PKT_PADDING - 1)) & in calculate_padding()1467 return (padded_size - last_unit); in calculate_padding()1473 padded_size = (last_unit + (WG_PKT_PADDING - 1)) & ~(WG_PKT_PADDING - 1); in calculate_padding()1474 if (pkt->p_mtu < padded_size) in calculate_padding()1475 padded_size = pkt->p_mtu; in calculate_padding()1476 return (padded_size - last_unit); in calculate_padding()