From 2262015b4fe87f8c4021d601c1d48c3604b861b2 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Wed, 18 Oct 2017 20:45:34 +0200 Subject: [PATCH] Use correct offset for generic SCTP packets. --- gtests/net/packetdrill/sctp_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtests/net/packetdrill/sctp_packet.c b/gtests/net/packetdrill/sctp_packet.c index c84be0ee..b948e3a8 100644 --- a/gtests/net/packetdrill/sctp_packet.c +++ b/gtests/net/packetdrill/sctp_packet.c @@ -3618,7 +3618,7 @@ new_sctp_generic_packet(int address_family, if (encapsulate) { packet->sctp = (struct sctp_common_header *) (ip_start(packet) + ip_header_bytes + udp_header_bytes); } else { - packet->sctp = (struct sctp_common_header *) (ip_start(packet) + udp_header_bytes); + packet->sctp = (struct sctp_common_header *) (ip_start(packet) + ip_header_bytes); } u8 *sctp_chunk_start = (u8 *) (packet->sctp + 1); -- GitLab