From owner-freebsd-net@freebsd.org Mon Dec 14 07:19:05 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 F2C5D4B11B2 for ; Mon, 14 Dec 2020 07:19:05 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CvXnP1Tyrz4WFQ for ; Mon, 14 Dec 2020 07:19:05 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=AGng7LRfcAkExRZ5vq4RY3jsupdmSwFI0a9sn+x00uI=; b=WyPod379dfQ42XB9yc35sDkcLW IWLQD+XtZg3jZqItEdaVpdTzR0P2/VEQa0B5wp3uXlEkQAMUEsrOk+pY9eQCLTmmcCFXUNcQIoAfc My9kFXAuk+o/QEGwHLB+RxPmN4NXnuwf5Ge4ZqQk+oDDme5Eegk17/JWbKWz/stthX1s=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1koi8I-000FHX-6T for freebsd-net@freebsd.org; Mon, 14 Dec 2020 14:18:58 +0700 Date: Mon, 14 Dec 2020 14:18:58 +0700 From: Victor Sudakov To: freebsd-net@freebsd.org Subject: net/bird2 and OSPF v3 Message-ID: <20201214071858.GA58656@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 4CvXnP1Tyrz4WFQ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=WyPod379; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-5.85 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:19f0:5001:21dc::10:from]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:19f0:5001:21dc::10:from:127.0.2.255]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; NEURAL_HAM_SHORT(-0.75)[-0.754]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-net] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2020 07:19:06 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, Can anyone please share a *working* net/bird2 config with OSPFv3 doing both IPv4 and IPv6 routing? Works fine for me with "protocol ospf v2", but as soon as I switch to=20 "protocol ospf v3" I lose all IPv4 network information etc. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJf1xHiAAoJEA2k8lmbXsY0vyUH/RMSE50RlHX+ovSAKMkdbBRm T98YMdkay9i98EEeR+fIrgP0NiPrsFDDYUsQr1ozCxI2mhzGMLS6GLdmGs9D1y+r lJsDrWRq+fWpadIvYgpfetu8Tlccp1frAG8JFT2f4zcnh0ZEPL+sE85epeLPqgk7 jrpUGCxbcCCmUH2Igge+tSKxsTuhYkQSmD7fCd9Z7uayJhoo41VQzakafLalHUnx ry8VlqFYDMl/9pi2/d7Jp71lv9A91xhKkWX0/AfuA0/Qaldyes9jLEq0o2fImJri mgcqJEWMUOOxwbcU6vUEva6GZJoFeZenmmyNH5g1472W7m7UhO+TAaaF4tVhu9k= =ZVKX -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb-- From owner-freebsd-net@freebsd.org Tue Dec 15 00:54:46 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 713C14CC036 for ; Tue, 15 Dec 2020 00:54:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cw0CV2mL0z4ccL for ; Tue, 15 Dec 2020 00:54:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4D6BB275A1 for ; Tue, 15 Dec 2020 00:54:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-lf1-f45.google.com with SMTP id s26so334313lfc.8 for ; Mon, 14 Dec 2020 16:54:46 -0800 (PST) X-Gm-Message-State: AOAM531FuR6gp4PB1EKCrx/1s6ZA2JwyJqAG2vicvtZDKdyA3vMAzx+x Zm/Xe8FTsm421wTbRk9pTtr9hUoGRpP6vFfmLwY= X-Google-Smtp-Source: ABdhPJxODb6LsIEz+ANdTo3vMF+ueltglQXcUkCrWxaIWRBOZgJhj96DEs0yCZK2HiOP3abBrSTqGAErBTEsW6cfDq0= X-Received: by 2002:a2e:361a:: with SMTP id d26mr11925558lja.115.1607993684954; Mon, 14 Dec 2020 16:54:44 -0800 (PST) MIME-Version: 1.0 References: <20201214071858.GA58656@admin.sibptus.ru> In-Reply-To: <20201214071858.GA58656@admin.sibptus.ru> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Tue, 15 Dec 2020 01:54:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: net/bird2 and OSPF v3 To: Victor Sudakov Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 00:54:46 -0000 On Mon, Dec 14, 2020 at 8:19 AM Victor Sudakov wrote: > Dear Colleagues, > > Can anyone please share a *working* net/bird2 config with OSPFv3 > doing both IPv4 and IPv6 routing? > > Works fine for me with "protocol ospf v2", but as soon as I switch to > "protocol ospf v3" I lose all IPv4 network information etc. > > Hi Victor, here is a bird example with BGP/RIP/OSPF/STATIC (using jail/vnet here), but the dual OSPF v3 / v2 is working: https://bsdrp.net/documentation/examples/simple_bgp-rip-ospf_lab_with_bird Regards, Olivier From owner-freebsd-net@freebsd.org Tue Dec 15 04:50:43 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 91A5E4A8055 for ; Tue, 15 Dec 2020 04:50:43 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cw5Rl3p2Yz4qLQ; Tue, 15 Dec 2020 04:50:42 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=4Cs3Sl/Y6QvxdMel7nJAhjbnSzWbT8uAQBrKkeENty0=; b=gMwc8M2tjRslfYXZ1r8ckBt8tY fBPXgBsGwLHkPjQ7XHVodmOg9POGBfkYaFfbJS8GvLu2QXzz9NB5Qz9SlVSXquv83svoHM35kC5oj WrS5ABlGfEK2gI3T5H9DiGjWhH01tQeet+DNUjX6D4MN598rZIjR6IS7uQRxIBA3rgEA=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1kp2IK-0002f1-ND; Tue, 15 Dec 2020 11:50:40 +0700 Date: Tue, 15 Dec 2020 11:50:40 +0700 From: Victor Sudakov To: freebsd-net@freebsd.org Cc: Olivier =?iso-8859-1?Q?Cochard-Labb=E9?= Subject: Re: net/bird2 and OSPF v3 Message-ID: <20201215045040.GA9937@admin.sibptus.ru> References: <20201214071858.GA58656@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 4Cw5Rl3p2Yz4qLQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 04:50:43 -0000 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Olivier Cochard-Labb=E9 wrote: > > > > Can anyone please share a *working* net/bird2 config with OSPFv3 > > doing both IPv4 and IPv6 routing? > > > > Works fine for me with "protocol ospf v2", but as soon as I switch to > > "protocol ospf v3" I lose all IPv4 network information etc. > > > > > Hi Victor, > here is a bird example with BGP/RIP/OSPF/STATIC (using jail/vnet here), b= ut > the dual OSPF v3 / v2 is working: > https://bsdrp.net/documentation/examples/simple_bgp-rip-ospf_lab_with_bird Thanks for the link! It's very useful. I guess, the magic I was missing is in using 2 OSPF processes simultaneousl= y: protocol ospf v2 opsf4 { ipv4 { import all; export all;}; area 0 { interface "epair2a" {}; }; } protocol ospf v3 ospf6 { ipv6 { import all; export all;}; area 0 { interface "epair2a" {}; }; } --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJf2ECgAAoJEA2k8lmbXsY07JwH/2/Ctsm3os31/o/+LkHK65mQ 9qUXQA/qOdXOW8YM1EwszZ7GWdUqR5fzkttweRdhBrkaPzeRz7eRO9qu18R5unbi S6dNKA1pM8Kdqj6SQR9DC1v5souNd8IBAQLDIwof9TH2f79O45cP4JTTB0KYeVhQ me8Rp7BdYABiZ8OgTfmkT+3SmZO5l/Z7LjddEBchzxSo/OHoBFeGXmeIdWPOUhCv dnfvxc19BjIG9O+5O3LWqImCkIHMPZovqX94XxH5A8JV6vH0OD7u3+9xBsjM8MR5 sDU8lnb09dxKy0j8MyzLqEH60T9HSdgx4fDDImF3k7Z/cXmfIpSZtKOQJud+/Mc= =/CUS -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd-- From owner-freebsd-net@freebsd.org Wed Dec 16 10:04:06 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 EBFDE4B6ADE; Wed, 16 Dec 2020 10:04:06 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwrLt2Bs2z4h02; Wed, 16 Dec 2020 10:04:06 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-ot1-x334.google.com with SMTP id a109so22346564otc.1; Wed, 16 Dec 2020 02:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KxZIKbCYPpmECpPoFUpQg2mEei1paeLRmIb0qbw2NHM=; b=KiDsCfR5r7BNs4Q9C74PXmgTz2LL/b2sirHgEAxtMEQ1YuC6hEY30SG6IeF16p5+lU sioIeuF0PuvA8nNbVoj3V7IJDfbz1Q/+3Kw293j6EVqvNmns9oKy+lhutabaEeJ7b7Le kqdzKY+Ko9bfa+6+XdHxPaxXyU8Hu4qtamkevmrvq6C/RFjC9CFKpifOhipXa63ZKwSh LEEEbh8edzPhRTKWKm5ZwJR3l/RUDTeMgoN4ASLcTzSNhbHmoMFjvKPRwQdyVZfqhwld ceB8LeKGQeir33s/uUZ56SkD/miKVTx3eUuEqeqP+z4FVqNXffUUOF4DDDYYjOiE6CPE 93Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KxZIKbCYPpmECpPoFUpQg2mEei1paeLRmIb0qbw2NHM=; b=lDU61MrnSHj3qIUssnaOhNyrpWdlHwddNqpeeUtGvsP23YDr3jgkXCWtcVGyJ72lfJ W1TXFFzJ6soOn/iiJRIEKeZzTCW8Go/1femIxlX9ID5rOIL2WlZwKRSMSl9arXAN8Ui1 +ruHAO5MbLAYe/iusOZ76Azk2K2Gd1qer3lc8aVK8DkOM4BezwPtjT1+5zaOFQDIpJ/T b482ISH8QrLIS1Goh2CxA37Ub9k4TUf03bY77JVNpOk/xPkc3986DuyTq6NamalI0X4a LI3Q4gQuGFHdjy4AutRhVCNgN4G/YBSECK5fHmPO4HZK1wjAMGK95tIxoBEhBbVI+xor naFg== X-Gm-Message-State: AOAM5310WavtOunDMV7feDxwdd+qNTidFelcS47bE5n1BGvRVCyIcWNu XZCV0vTyHlVdqabWLYAeanRFEYwK4e7TTBiBO5XF1N1Oo4k= X-Google-Smtp-Source: ABdhPJwbEHep9c/LciyuEL/+6yhzydXigYqZVvzwGPfYoAkzOCfsKDkDb3NQjoB4LXTpNqbAcHCsMnHZyTu6sub9YMM= X-Received: by 2002:a9d:453:: with SMTP id 77mr18295069otc.91.1608113044461; Wed, 16 Dec 2020 02:04:04 -0800 (PST) MIME-Version: 1.0 From: Rajesh Kumar Date: Wed, 16 Dec 2020 15:33:53 +0530 Message-ID: Subject: Netmap Library not getting installed on custom kernel installation To: freebsd-net@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 4CwrLt2Bs2z4h02 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KiDsCfR5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2607:f8b0:4864:20::334 as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-2.03 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::334:from]; NEURAL_SPAM_SHORT(0.97)[0.968]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::334:from:127.0.2.255]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::334:from]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-hackers]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 10:04:07 -0000 Hi, I am trying to compile the netmap tools(pkt-gen, bridge etc.,) and getting the below error. */root//freebsd/tools/tools/netmap/pkt-gen.c:47:10: fatal error: 'libnetmap.h' file not found#include ^~~~~~~~~~~~~1 error generated.*** Error code 1* On debug, I don't see the libnetmap.h file getting installed in the /usr/obj/ directory. Whereas, in another similar machine I have the file in /usr/obj and compilation of netmap tools goes fine. For the test, I just copied libnetmap.h from the source and it leads to linker error. So seems the libnetmap library is not installed properly. I installed a custom kernel just disabling the debug options with the FreeBSD-CURRENT branch. After rebooting to the custom kernel, I tried to compile the netmap tools (with some changes) and ran into the above error. How to get the netmap tools compiled in this scenario? Am i missing something? From owner-freebsd-net@freebsd.org Wed Dec 16 13:42:31 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 5B32B4BD393; Wed, 16 Dec 2020 13:42:31 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwxBt6ZFLz4vT7; Wed, 16 Dec 2020 13:42:30 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-oi1-x22b.google.com with SMTP id d203so6321322oia.0; Wed, 16 Dec 2020 05:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=JKd/c1e9MQ+nWPR0mewY90955nZJz0S21qiaRcGcGZk=; b=ULWit7Kr3XqewYDA6J9KvdPXShV1quiSMj80aG9Ty5WUYopAsiSgnh2SF0PXfPSET9 VHho+0c6G4TmoyVaZ2NVYn0oIc8Om++Wu5TVS1Trzl3l1T7SkJWN2t8EZO5yVkyg2d/j fZfbonQsjS/2zSLwL/7OLr9sgBL2nRjsDzwLqQUfzz5DXFz+JDFBdfouUkbjJmgqtx6s 1LTDLoytBf2qy/DWfrkNop0vpOCiIGseLYImYVJbAlKxOmfsT38h9kc4uVxXuP1dyqV1 YnBTP7IFnl3sVgCOTlWOk41QL/RdWHA3hGF1BQaZCaKiYabS7T4IxGQqmiqEDwCwms/j 3jXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=JKd/c1e9MQ+nWPR0mewY90955nZJz0S21qiaRcGcGZk=; b=LINCFb50MoJP032TzfLBsvRP8cC8EEXeT7Ln0D0m08n6eKptugDmtn+cyJEi+OtUFC iH0o3KPe21e7Qlc7li8j73Nk9bcz783sDZNEIo3jRC6qf37VRvHv9HPIlbTRVkJuZqZu Q53N9lsYGuRWZUzzTBg7cQVvR6+YH4XZg0Ed/zYuGNPZEMsKtm9k1JPFc73kY3r1R9zo eaMmyi7kHT/ksbtrD1LJNF+9yCc9JlRq7pYSI0MmpT7hgt8kPjVGvPDy7aSwymd5SDRt +CS96dTK471CUYnaIAgU05H21gb+xB2BWzVIPFUzu89UhM5FuutSVeJjdC7Xzj0LJcxd Pw5Q== X-Gm-Message-State: AOAM530YPd3JOYCQBVwXFHu4GUQnm/jPPRWe5fqJVhgfsEBI96U6e6M+ duChhxSSI7xY4iqwqu35nWBuNaPUOQhcI6Uw5BaNqS1K X-Google-Smtp-Source: ABdhPJwAzAaXby4GvtCgJfcEG9i4KSpdOQE9KURov83BCFVVvTNQ+XAPwu4U2WssJOW5RApx9zzg/jebj+VfEr9itMM= X-Received: by 2002:aca:4257:: with SMTP id p84mr1971644oia.68.1608126149508; Wed, 16 Dec 2020 05:42:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Wed, 16 Dec 2020 19:12:13 +0530 Message-ID: Subject: Re: Netmap Library not getting installed on custom kernel installation To: freebsd-net@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 4CwxBt6ZFLz4vT7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ULWit7Kr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2607:f8b0:4864:20::22b as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::22b:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[0.995]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::22b:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22b:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-hackers]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 13:42:31 -0000 Hi, Got around this issue by manually copying necessary in /usr/obj Looks like libnetmap (src/lib/libnetmap) is not built and installed by default. Manually built them and copied the "libnetmap.h" and "libnetmap.so" (not just the header file) to appropriate directories in /usr/obj helps to get past the issue. But not sure why libnetmap is not built and installed though "device netmap" is set in the config file. Manually copying may not be the right approach. Can anyone suggest a cleaner way of getting things done? Thanks, Rajesh. On Wed, Dec 16, 2020 at 3:33 PM Rajesh Kumar wrote: > Hi, > > I am trying to compile the netmap tools(pkt-gen, bridge etc.,) and getting > the below error. > > > > > > */root//freebsd/tools/tools/netmap/pkt-gen.c:47:10: fatal error: > 'libnetmap.h' file not found#include ^~~~~~~~~~~~~1 > error generated.*** Error code 1* > > On debug, I don't see the libnetmap.h file getting installed in the > /usr/obj/ directory. Whereas, in another similar machine I have the file > in /usr/obj and compilation of netmap tools goes fine. For the test, I > just copied libnetmap.h from the source and it leads to linker error. So > seems the libnetmap library is not installed properly. > > I installed a custom kernel just disabling the debug options with the > FreeBSD-CURRENT branch. After rebooting to the custom kernel, I tried to > compile the netmap tools (with some changes) and ran into the above error. > > How to get the netmap tools compiled in this scenario? Am i missing > something? > From owner-freebsd-net@freebsd.org Thu Dec 17 14:18:43 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 507504B909B; Thu, 17 Dec 2020 14:18:43 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CxYyC1mlNz3k51; Thu, 17 Dec 2020 14:18:43 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 2D1E123A39; Thu, 17 Dec 2020 14:18:43 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-lf1-f43.google.com with SMTP id h205so14218574lfd.5; Thu, 17 Dec 2020 06:18:43 -0800 (PST) X-Gm-Message-State: AOAM5314Pygm3WQ3WyzDFRebaKzjLf5+vRCSxpbR+4RzvroDm27ESqq5 fmS8DWQfBeKLTAd8vol2dAHAJnYVv5mTU6ENgr0= X-Google-Smtp-Source: ABdhPJx1iUt+Cdu64uNf8yGp7bGmmISnmb1HfeW3gNt4P5GKbCsfjNL8yaVKjKMA836nC+K0eQfhZ5KJfFGO3WdwoCk= X-Received: by 2002:a2e:9916:: with SMTP id v22mr8276605lji.221.1608214721678; Thu, 17 Dec 2020 06:18:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Thu, 17 Dec 2020 15:18:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Netmap Library not getting installed on custom kernel installation To: Vincenzo Maffione Cc: Rajesh Kumar , "freebsd-net@freebsd.org" , FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2020 14:18:43 -0000 On Wed, Dec 16, 2020 at 9:53 PM Vincenzo Maffione wrote: > > On a side note, the netmap tools (pkt-gen, bridge, lb, etc.) should really > be a port. Another TODO item. > > There is already one port for an old version of pkt-gen: https://svnweb.freebsd.org/ports/head/net/pkt-gen/ And here is a custom port's patch to upgrade this port to a not-so-old version including a quick&dirty range bug fix (cleaner version fresh-from-today official netmap github), and adding a new option to prevent doing software IP & UDP checksum by default (because it consumes a lot of ressource on 40G or 100G NIC and Chelsio NIC are able to do hardware checksum in netmap mode): https://github.com/ocochard/BSDRP/blob/master/BSDRP/patches/ports.pkt-gen.patch Regards, Olivier