From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 49A703858C55; Tue, 20 Sep 2022 22:42:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49A703858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663713752; bh=U/EeZLLQE9wTmLFwYK3Kb4c7U3K8zVeg5KOn5WhFmc8=; h=From:To:Subject:Date:From; b=jvqjTSM0hViVhucKdiIDsWlaoZ6H6BD+SNLEwj9dyQ1HPSilJLoV5Zqfp4LFInTae Ts+1fmGUPNJq9TfN1bRuqw93cqeHXrP9+bPDWHt3GffATLgBlXDnrV4+yme4eMAKhT gh5hRJz0D87XAPh6pNTJj8Strm3bi/mObxN99LTU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Add ifrtreq structure to net/route.h X-Act-Checkin: glibc X-Git-Author: Damien Zammit X-Git-Refname: refs/heads/master X-Git-Oldrev: fa47e8e6df0ef43289d344a85b8587e8a0a1c663 X-Git-Newrev: ffd0b295d96aa58d65e642d7519f4d8c33acb3f0 Message-Id: <20220920224232.49A703858C55@sourceware.org> Date: Tue, 20 Sep 2022 22:42:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ffd0b295d96aa58d65e642d7519f4d8c33acb3f0 commit ffd0b295d96aa58d65e642d7519f4d8c33acb3f0 Author: Damien Zammit Date: Wed Sep 21 00:41:31 2022 +0200 hurd: Add ifrtreq structure to net/route.h As used by the hurdish route ioctls. Diff: --- sysdeps/mach/hurd/net/route.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sysdeps/mach/hurd/net/route.h b/sysdeps/mach/hurd/net/route.h index 61e4ccc564..7bbd94fb56 100644 --- a/sysdeps/mach/hurd/net/route.h +++ b/sysdeps/mach/hurd/net/route.h @@ -25,6 +25,7 @@ #include #include #include +#include /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */ @@ -65,6 +66,22 @@ struct in6_rtmsg }; +typedef struct ifrtreq + { + char ifname[IFNAMSIZ]; + in_addr_t rt_dest; + in_addr_t rt_mask; + in_addr_t rt_gateway; + int rt_flags; + int rt_metric; + int rt_mtu; + int rt_window; + int rt_irtt; + int rt_tos; + int rt_class; + } ifrtreq_t; + + #define RTF_UP 0x0001 /* Route usable. */ #define RTF_GATEWAY 0x0002 /* Destination is a gateway. */