From mboxrd@z Thu Jan 1 00:00:00 1970 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 280145A004F for ; Sat, 20 Jul 2024 16:46:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721486771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y9131E9oqelaymi4dWPn0bylO1eETMlkXTpmuwX+uS0=; b=PfLXbFRquFtyheBaIx+K1My9ZJvGcNVUkSQGYXRC5vfq9Ng8h6LsRjHlB1P2ZsFJMPz+/5 Mvf+2qPyGWjf51Mv8AaZ9qOYda6AQ0LfhrHR+FTRUIFucb+BZd97opAc9fvXLHklUNK9oo wrBCXPm/1nP7lPuHHPRFaE5aikQ1P6o= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-612-QVn-29O2OG-mM5l46uNvUA-1; Sat, 20 Jul 2024 10:46:10 -0400 X-MC-Unique: QVn-29O2OG-mM5l46uNvUA-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-79f00facc85so256209485a.1 for ; Sat, 20 Jul 2024 07:46:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721486769; x=1722091569; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y9131E9oqelaymi4dWPn0bylO1eETMlkXTpmuwX+uS0=; b=aw8Yw5wqZVPhd5SasrgmVJg9F+BWYhQMybZsGYnvbLzNpN9pvOeVPYoct8kcC1guCY X9yluyfhbv9iKTc7NgPrKRuyhOaT6p6QQHaxApGU2HKW4N/k+4vP8WvWaV/R5LiZbjdW mZPkxEslhQgZyRtBvlEQX/c7nJzw9QPv4pA/RrLaLe9UTPrtfOfGmPze/qivwljuCqkB imREjH46DWvU+g+f3fJO5SnMaapIrho7I8wUIqhCougF637L4Upoj/i+psYVcLkrFuh5 TwtFRHhZWuTCHZHOywiqKs2Pbp128PZoikpBPZYfswRCnHUSB5ke4H6JPSqh/MlRCoSj /p/Q== X-Gm-Message-State: AOJu0YxQ/KqU7dw4fZOh8nUUvqMbupVQiNLPJuiZPmc9b1VM8rVtySEf nUC2TbLC9aTxXdGvEkb7L6170+Kl0TfhZZljvgKX8tdyf04YYpruYlhgQVYiUy9Z7/Th+RTCGQG L3HFFpyKDiVi9tJCKbGV3YdmjzuPWt3p9xzDGfXf5yj2WVodawTWcFcmveK8HX8fivLW8iYIzcp JxcebEuHRJZHgYyE/YcXuRMmjdELmTyI0= X-Received: by 2002:a05:620a:372c:b0:79f:190a:8ad7 with SMTP id af79cd13be357-7a1a133db42mr391754885a.33.1721486769552; Sat, 20 Jul 2024 07:46:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmX/Rkk+Z/Lz6e4rZrAgf8elHMKr+BQWTg2UiWWDT/EFuXwLm6ll/Ps0gV9qND1eAagoYyVA== X-Received: by 2002:a05:620a:372c:b0:79f:190a:8ad7 with SMTP id af79cd13be357-7a1a133db42mr391752385a.33.1721486769049; Sat, 20 Jul 2024 07:46:09 -0700 (PDT) Received: from [10.0.0.174] ([24.225.235.209]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a198fae6d8sm192056285a.7.2024.07.20.07.46.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Jul 2024 07:46:08 -0700 (PDT) Message-ID: Date: Sat, 20 Jul 2024 10:46:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] tcp: probe for SO_PEEK_OFF both in tcpv4 and tcp6 To: passt-dev@passt.top, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com References: <20240720135453.2694694-1-jmaloy@redhat.com> From: Jon Maloy In-Reply-To: <20240720135453.2694694-1-jmaloy@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: PSIVIMPQQEW5AQ3F4OFZKA2RXLCI6EAJ X-Message-ID-Hash: PSIVIMPQQEW5AQ3F4OFZKA2RXLCI6EAJ X-MailFrom: jmaloy@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 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: TXkgZmlyc3QgYXBwcm9hY2ggdG8gdGhpcyB3YXMgdG8gY29uZGl0aW9uIHRoZSB1c2Ugb2YgU09f UEVFS19PRkYgd2l0aCANCnRjcHY0LCBlLmcuLCBiYXNpY2FsbHkNCmEgdGVzdCBsaWtlIGlmICh2 NCAmJiBwZWVrX29mZnNldF9jYXApIHsuLi59IGV2ZXJ5d2hlcmUsIGJ1dCB0aGVuIEkgbWFkZSAN CmFuIGludGVyZXN0aW5nIGRpc2NvdmVyeS4NCg0KSXQgdHVybnMgb3V0IHRoYXQsIHVubGVzcyB0 aGUgwrQtNCcgb3B0aW9uIGlzIGV4cGxpY2l0bHkgZ2l2ZW4gb24gdGhlIA0KY29tbWFuZCBsaW5l LCBhbGwgc29ja2V0cyBhcmUNCnY2LCBldmVuIHRob3NlIHRoYXQgYXJlIGxhdGVyIHVzZWQgYXMg djQgc29ja2V0cy4gU28sIHRoZSBzZXRfcGVla19vZmYoKSANCmNhbGwgZmFpbGVk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