From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b8kA6Mxt; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id 051235A061D for ; Fri, 08 Nov 2024 11:37:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731062276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ezQ8QdMsg9MrF0ZjsZtyGGxMn4CxGrmFD2EGrp3kf9g=; b=b8kA6MxtHyD7HsY8U1E9D5FLadxqd0vY9on9HWR3NyQCDVbHrXMNXzzOgQx5n+wPJleGQF CVyi+EHF6FNu0u11ROz+kDu57KT14sBQix3Ju2VDDBXJiTa3Lykl6RCgGp2crdSFORjuUg JkDcbCKK5vOnSbZajHkEy4/JAUO9+wc= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-124-QslmNJU5PRu7x_FkDDpeTQ-1; Fri, 08 Nov 2024 05:37:52 -0500 X-MC-Unique: QslmNJU5PRu7x_FkDDpeTQ-1 X-Mimecast-MFC-AGG-ID: QslmNJU5PRu7x_FkDDpeTQ Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E03311954233; Fri, 8 Nov 2024 10:37:51 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.39.194.73]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 28BE81953880; Fri, 8 Nov 2024 10:37:49 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH v10 09/12] tcp: Use only netinet/tcp.h instead of linux/tcp.h Date: Fri, 8 Nov 2024 11:37:28 +0100 Message-ID: <20241108103733.3554357-10-lvivier@redhat.com> In-Reply-To: <20241108103733.3554357-1-lvivier@redhat.com> References: <20241108103733.3554357-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: OYjaXf_rVh1yn8opDsEiWAjxsh-bMAjeyFnADyEb4cs_1731062272 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: 7YCM6CQZW4WWDMRNXY3I7EBFB5QS5V2A X-Message-ID-Hash: 7YCM6CQZW4WWDMRNXY3I7EBFB5QS5V2A X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson , Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: David Gibson We used to use linux/tcp.h instead of the (somewhat) standard netinet/tcp.h because we needed the Linux specific extensions for TCP_INFO. Since 13f0291e "tcp: Remove compile-time dependency on struct tcp_info version" we're dealing with that in a different way. However tcp_buf.c and tcp_vu.c still used linux/tcp.h. Change it to netinet/tcp.h. Signed-off-by: David Gibson Signed-off-by: Laurent Vivier --- tcp_buf.c | 3 +-- tcp_vu.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tcp_buf.c b/tcp_buf.c index 274e313fac95..d17ba48047bd 100644 --- a/tcp_buf.c +++ b/tcp_buf.c @@ -19,8 +19,7 @@ #include #include - -#include +#include #include "util.h" #include "ip.h" diff --git a/tcp_vu.c b/tcp_vu.c index 44fd538628a6..cc6d4f0f262e 100644 --- a/tcp_vu.c +++ b/tcp_vu.c @@ -10,10 +10,10 @@ #include #include +#include #include -#include #include #include "util.h" -- 2.47.0