aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/sctp/sctp_packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/sctp/sctp_packet.h')
-rw-r--r--src/vnet/sctp/sctp_packet.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/vnet/sctp/sctp_packet.h b/src/vnet/sctp/sctp_packet.h
index 4c358db6d3b..d1fe7ab71ea 100644
--- a/src/vnet/sctp/sctp_packet.h
+++ b/src/vnet/sctp/sctp_packet.h
@@ -503,17 +503,6 @@ vnet_sctp_calculate_padding (u16 base_length)
return (4 - base_length % 4);
}
-always_inline u16
-vnet_sctp_calculate_payload_data_padding (sctp_payload_data_chunk_t * p)
-{
- u16 payload_length = vnet_sctp_get_chunk_length (&p->chunk_hdr) -
- sizeof (p->chunk_hdr) -
- sizeof (p->tsn) -
- sizeof (p->stream_id) - sizeof (p->stream_seq) - sizeof (p->payload_id);
-
- return vnet_sctp_calculate_padding (payload_length);
-}
-
#define DEFAULT_A_RWND 1480
#define INBOUND_STREAMS_COUNT 1
#define OUTBOUND_STREAMS_COUNT 1