From owner-freebsd-net@freebsd.org Sun Aug 16 13:30:30 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5CC3C3BC027 for ; Sun, 16 Aug 2020 13:30:30 +0000 (UTC) (envelope-from peter@libassi.se) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BTyjK23hHz4MkY for ; Sun, 16 Aug 2020 13:30:29 +0000 (UTC) (envelope-from peter@libassi.se) Received: by mailman.nyi.freebsd.org (Postfix) id 44ED13BBFD7; Sun, 16 Aug 2020 13:30:29 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 44AA33BC085 for ; Sun, 16 Aug 2020 13:30:29 +0000 (UTC) (envelope-from peter@libassi.se) Received: from smtp.outgoing.loopia.se (smtp.outgoing.loopia.se [93.188.3.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BTyjH0rlyz4Mm8 for ; Sun, 16 Aug 2020 13:30:26 +0000 (UTC) (envelope-from peter@libassi.se) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 795C910C8E24 for ; Sun, 16 Aug 2020 15:30:19 +0200 (CEST) Received: from s500.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 5A36D2E34C8A; Sun, 16 Aug 2020 15:30:19 +0200 (CEST) Received: from s475.loopia.se (unknown [172.22.191.6]) by s500.loopia.se (Postfix) with ESMTP id 554B41E1461D; Sun, 16 Aug 2020 15:30:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s498.loopia.se ([172.22.191.5]) by s475.loopia.se (s475.loopia.se [172.22.190.15]) (amavisd-new, port 10024) with LMTP id ZOyhxJozMuWl; Sun, 16 Aug 2020 15:30:18 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 78.82.159.46 Received: from [10.79.0.17] (c-2e9f524e.03-77-73746f30.bbcust.telenor.se [78.82.159.46]) (Authenticated sender: peter@libassi.se) by s498.loopia.se (Postfix) with ESMTPSA id 9074F4708DB; Sun, 16 Aug 2020 15:30:18 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: ip(8) in base From: Peter Libassi In-Reply-To: <1634721597568903@mail.yandex.ru> Date: Sun, 16 Aug 2020 15:30:18 +0200 Cc: net , freebsd-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <3FFD7C38-8B9B-4A91-BFA9-79B4D639782F@libassi.se> References: <1634721597568903@mail.yandex.ru> To: "Alexander V. Chernikov" X-Mailer: Apple Mail (2.3608.120.23.2.1) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1597584627; 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=b2pVIIaw+/27TAt4QNMrAHMIKiD14MxjcAn6uHbpQk4=; b=oMCyZsCecuXuemGlzh/lKwgpz7/ly4YmvkKTLRQNo6SbnGRX6jb5WxT/mj0SeFm1JW5zKO +Zj4rMlEC8hKJKtkZ8wMsDqxZp/n9G9rly34HjnPXbJzCusuHdKW6l84hZse69Ep2Y2YJD HRPjfb55UEYFB3P3oCj2QJpz5Sj7SGzjAT+qiNJmTh0M9G8pNL+VUOzV8dTcqgjceUUuHL o+kFeVNZHut16uu0X4HyoqSHQ67mFFtTDBBSpGL47Qcnd7Y09NP24iafIQpXdLUupxmtK7 HmRyKfG9rTo0hZ+F/jRuNpp8AK5EVp+pYoSoI4AvLj9uenL+NMXgwfy0YJlEEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1597584627; a=rsa-sha256; cv=none; b=kR9AqedM/zAFk9E2snuRKsJpVDyYWzpaZrAKW6by78L2ITmlVDTK4YZqsHNgINRcFncNV7 Y8tCPIxgQRXdLnx4n4hM5innIlRNm9MgZBRz4JRN+b9hnGjmG5BeF5QFDXdL62TGlf4Qjf xRRkNcuZSFzoiS5RGynvgEtiuUIiCVi8VwFQm+CBVlSXCIWmMdOCbDGqPmRHXLrcVOtxel N25vOzhjVe1guS3iAknkhN2ObKZujiU8fBJxvOee1pSgNWj7NP0Wp3HnYCMjskmSH5M8JM N6+KuLKDDQNJMe6wo3Qty+FdVLsQJUJKndpJSMMA0oiAPQ04Bzwd9H9P7pQ8AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Rspamd-Queue-Id: 4BTyjH0rlyz4Mm8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Spamd-Result: default: False [-0.77 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.87)[-0.873]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.90)[-0.898]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; ARC_SIGNED(0.00)[i=1]; RWL_MAILSPIKE_GOOD(0.00)[93.188.3.37:from]; DMARC_NA(0.00)[libassi.se]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.40)[-0.399]; RCVD_IN_DNSWL_NONE(0.00)[93.188.3.37:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:39570, ipnet:93.188.2.0/23, country:SE]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2020 13:30:30 -0000 =46rom a consumer view I think we should be conservative and not add any = additional commands that operates in an area where there already exists = well known commands. Not sure i understand what new features you are = contributing, but the sound of it i guess it has to do with IP routing = and fib=E2=80=99s. If this is the case i would like to see this = introduced in to route(8) and netstat(1) /Peter > 16 aug. 2020 kl. 11:11 skrev Alexander V. Chernikov = : >=20 > I want to introduce ip(8) or something similar in base. > Basically, I need some userland tool to explicitly operates on = nexthops, nexthop groups and fib lookup algorithms. >=20 > The existing tools are not well suited for the job: route(8) may be a = candidate, but (a) it would either add another bunch of options or = drastically change the tool by introducing [route nhop add], [route = nhgroup add] and (b) listing is traditionally done by netstat(8). >=20 > I feel like there is a need of some cli tool that provides the ability = to easily extend it by having separate namespaces for each sub-command = (hello, ifconfig). >=20 > Naming is hard. I can, for example, use "rt" as a name to address my = use cases. > However, given the kernel interfaces for managing nexthops/nexhop = groups are the same as with routes/arp/ndp, why not spending some = additional time and support operating on routes and neighbors and name = it ip? >=20 > Though, that arises multiple questions. > Are we comfortable with ip(8) as a name in general? > If we are, what=E2=80=99s our take on having the compatible interface = with Linux ip(8)?=20 >=20 > Any comments/feedback is welcome :-) >=20 >=20 > Appendix=20 > List of commands I need implemented >=20 > cmd [-46m] nhop create [gw XX] [iface YYY] [mtu YYY] [reject] = [proxyfib Y] [fib X][ipv4] [ipv6] > cmd [-46m] nhop delete nhop_id > cmd -46m nhop list=20 > cmd -j nhop list # json=20 >=20 > cmd -46m nhgroup create nhops 1,2,3,4,5,6 [fib X] > cmd -46 nhgroup create nhops 1=3D100,2=3D100,3=3D200,4=3D100 [proxyfib = Y][fib X] > cmd -46 nhroup list > cmd -46 nhgroup delete nhgroup_id >=20 > cmd -46 fib algo list > cmd -46 fib algo set algo dpdk_lpm6 fib 0 > cmd -46 fib algo set algo auto fib 0 >=20 >=20 > /Alexander > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"