From patchwork Tue Jun 16 23:27:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 137182 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 08F0548F66D3 for ; Tue, 16 Jun 2026 23:28:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08F0548F66D3 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id CBF8E48A0816 for ; Tue, 16 Jun 2026 23:27:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CBF8E48A0816 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CBF8E48A0816 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781652463; cv=none; b=bBBDYAuepdwsBp25fCkGjtXwfU79LeNd21/ZpLdYsWZgDciMDvYmb9tet+d2BumyRXEvfmC7NHF+Tn5yl2XQgv/BFUlMtW4/gWtiPohVXWjWFSgR/5YX2Lt/Dd7ucTqcBJIZrOk3THnFMptetFBSoPUiuqW1uyXA2JvKEMBX5NI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781652463; c=relaxed/simple; bh=tdcFDYdtvsz9nFFzjPppqNO1l5EysNq3csDM9b+eJFU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=BYQUSHbZOB2DUKq6hJaXSNllfE0vzRQjDFzauY7Fzx9DNzSdywb+/lYf1oWb86vDLhU+UqQVy1ssxcujgahdVAs658LlX0KS1+263G/oaTBxLUPffKDOjIDPXMIgPe3SAXWvXlwjDD3V603N5rVPCIoEE6T+zlxB5SYwcNVyC6A= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBF8E48A0816 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id E6A6CA0326; Wed, 17 Jun 2026 01:27:42 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DauCiL4sONZC; Wed, 17 Jun 2026 01:27:42 +0200 (CEST) Received: from end (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id CA602A0267; Wed, 17 Jun 2026 01:27:42 +0200 (CEST) Received: from samy by end with local (Exim 4.99.4) (envelope-from ) id 1wZdC2-00000003AIS-15oA; Wed, 17 Jun 2026 01:27:42 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Add ETH_TLEN and ETH_FCS_LEN Date: Wed, 17 Jun 2026 01:27:41 +0200 Message-ID: <20260616232741.754557-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_PBL, SPF_HELO_PASS, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org --- sysdeps/mach/hurd/net/if_ether.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/mach/hurd/net/if_ether.h b/sysdeps/mach/hurd/net/if_ether.h index 88b8d03f35..7709012556 100644 --- a/sysdeps/mach/hurd/net/if_ether.h +++ b/sysdeps/mach/hurd/net/if_ether.h @@ -24,10 +24,12 @@ */ #define ETH_ALEN 6 /* Octets in one ethernet addr */ +#define ETH_TLEN 2 /* Octets in ethernet type field */ #define ETH_HLEN 14 /* Total octets in header. */ #define ETH_ZLEN 60 /* Min. octets in frame sans FCS */ #define ETH_DATA_LEN 1500 /* Max. octets in payload */ #define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */ +#define ETH_FCS_LEN 4 /* Octets in the FCS */ /* * These are the defined Ethernet Protocol ID's.