From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11464 invoked from network); 3 Jan 2022 22:29:27 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 3 Jan 2022 22:29:27 -0000 Received: from mail-ua1-f48.google.com ([209.85.222.48]) by 4ess; Mon Jan 3 17:22:17 -0500 2022 Received: by mail-ua1-f48.google.com with SMTP id o63so60089555uao.5 for <9front@9front.org>; Mon, 03 Jan 2022 14:22:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2cozvoNAjfkYEs1knK07OluZvW3G/am0bcyS87F1F3Q=; b=M8kskogsLyOXYt8txWF2f082CGZye0E5ZUyInKLDqFhRNmg93zBLE0DkLj1CF6dmI8 JX6TqGdgUlLTcJdHlzJpNPph1w7SAr1sKvYol6hEdbgFxwun0i9e4DlXdieNcsF/yUyW OAB0GTEgKZcdbKBWuaIoGqSS84sSdV5Dqp0HXI+8yUjkXbmlPlh8WQX6cRLUKDj9MJJZ cCHVtpRP7SR8CyMkmKb/UKuuyWyq3btLQZZd6YmtwALbHdmxaoYPrL0t1AMym728rnpZ 8yWb4n+9ltrlWdpMKkyBGbl1wVfh7M7uawmWPvbMocHHkkwp77zJDYr8sfx97nJTS0Qr G5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2cozvoNAjfkYEs1knK07OluZvW3G/am0bcyS87F1F3Q=; b=1V8dQzRr0bGXU7voLOP1ot2TzgbqNGRerxSvx/LUP66p8Qm/qmzxOtf7m8tkZlPkk0 CowcVNMkKgMgJ+Lsh2cTrHCqhKuLMbdKZ6JG0p9R0ZQx5DwMP0FcyRjTokCHuNktEbsH K333suy2s55I3edtE5jTGRa89eslhsGyQXewa6U9lgDA4DMkAkDT6lW0N96MyjdaoN/s UIpj3/b8SKBUDyHJ6w8STnXG3vUOMyN3oTWLfguc2kME7oQKDvecPc0NZvnrUpaye4JH 0il7RDRF4ts7ie1lvDNeGlKR9AtdgqakK5TRdjHd6OHWxfcSxqUJoBk3gggVQZnIRcTh ZmdQ== X-Gm-Message-State: AOAM5329Pf5DuLwW/1JzX9VrqnYv3Rut+6EazW21ikjj9rJKXW4jRR9a 03t768PldFHHju2uBR9+NDMuX6kuNnnKII7h4RE= X-Google-Smtp-Source: ABdhPJxiOC8vAYZi+XnvrCGZg4Y178cxjViHzjTRnDKhjahv7B+7dUAS3ctsWFZUMNjjvM2k2EBQaDE9U/MHXvnSmoI= X-Received: by 2002:a67:fe49:: with SMTP id m9mr15041569vsr.32.1641248530140; Mon, 03 Jan 2022 14:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a59:d065:0:b0:278:12e7:e03b with HTTP; Mon, 3 Jan 2022 14:22:09 -0800 (PST) In-Reply-To: <87y23w7e9z.fsf@turtle-trading.net> References: <87o84syh0s.fsf@turtle-trading.net> <87y23w7e9z.fsf@turtle-trading.net> From: hiro <23hiro@gmail.com> Date: Mon, 3 Jan 2022 23:22:09 +0100 Message-ID: To: Benjamin Riefenstahl Cc: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic webscale API template Subject: Re: [9front] Loopback device Reply-To: 9front@9front.org Precedence: bulk i think the main use case would be something like what tc is used for on li= nux: simulating a network link with output buffers, fragmentation, packet drop, delay. somebody might use it's flow-control for creating a bit of fairness on a saturated slow link... you're right that it isn't currently being built by default: cpu% cd /sys/src/9/port cpu% g =CE=BB devloopback.c:718: L'=CE=BB', cpu% g loopback|grep -v devloopback.c sdloop.c:2: * sd loopback driver, also try cat master in same directory. On 1/3/22, Benjamin Riefenstahl wrote: > Hi hiro, > > Thanks for taking the time. > > hiro writes: >> loopback is a *link*. it has two sides. >> it's not the same as the 127.0.0.1 feature from other unixes. > > Ok. But that does not answer my questions. Why doesn't the bind > command from the man page work? And what *does* loopback do? > > Calling it a link with two sides makes it sound like a pipe. And being > mounted in /net makes it sound like, well, localhost, which also has two > sides, in the sense that I can run a server on it and than connect to > that server, all on the same host. > >> localhost/127.0.0.1 is not normally used on plan9. >> >> it doesn't make much sense on a distributed and namespaced system. >> better use more meaningful unique IPs and hostnames and service names >> and then use just those, together with our excellent ndb service to >> resolve it all. > > I find I most often use it for testing and for other code that needs an > IP with two sides where I do not want to hardcode, configure or find out > the host name or host IP. > > Thanks, benny >