Re: [9fans] Maybe a weird Plan 9 project.

2011-07-31 Thread erik quanstrom
 Issuing RPCs from Emacs is really not that bad if you can stomach elisp.

in other words, it's a hateful experience that will leave your
soul as dark and twisted as an urskek's.

;-)

- erik



Re: [9fans] Plan 9 IPv4 router

2011-07-31 Thread erik quanstrom
 Does anybody know if it's possible to use Plan 9 as an IPv4 router?

plan 9 does a fine job of routing ip4 packets.  i used plan 9
to do that for a 4 months recently during a network renumbering.

if you do this, make sure you've made this revert to ip.c.  the
sources version has both lines, which is harmless but redundant.

minooka; diff -c /n/dump/2010/0930/sys/src/9/ip/ip.c 
/n/dump/2010/0820/sys/src/9/ip/ip.c
/n/dump/2010/0930/sys/src/9/ip/ip.c:463,469 - 
/n/dump/2010/0820/sys/src/9/ip/ip.c:463,469
}
  
/* don't forward to source's network */
-   memset(conv, 0, sizeof conv);
+   conv.r = nil;
r = v4lookup(f, h-dst, conv);
if(r == nil || r-ifc == ifc){
ip-stats[OutDiscards]++;

- erik



Re: [9fans] Plan 9 IPv4 router

2011-07-31 Thread Alexander Sychev
On Sun, Jul 31, 2011 at 5:21 PM, erik quanstrom quans...@quanstro.netwrote:

  Does anybody know if it's possible to use Plan 9 as an IPv4 router?

 plan 9 does a fine job of routing ip4 packets.  i used plan 9
 to do that for a 4 months recently during a network renumbering.

 if you do this, make sure you've made this revert to ip.c.  the
 sources version has both lines, which is harmless but redundant.


- My car is broken, can you fix it?
- Pay me $100, I will kick your car and it will be fixed...
- Do you think I'm going to pay $100 for one kick?
- No, you will pay only $1 for the kick, but $99 for a knowledge, where
exactly I should kick the car

:-)

-- 
Best regards,
santucco


Re: [9fans] Maybe a weird Plan 9 project.

2011-07-31 Thread EBo

On Sun, 31 Jul 2011 09:26:16 -0400, erik quanstrom wrote:
Issuing RPCs from Emacs is really not that bad if you can stomach 
elisp.


in other words, it's a hateful experience that will leave your
soul as dark and twisted as an urskek's.


Sometimes you just cannot help watching the train wreck...  Like the 
cat who stared down an aleatory and WON.  You never know what the end 
experience is going to be like, but sometimes it just looks BAD...


  EBo --




Re: [9fans] Plan 9 IPv4 router

2011-07-31 Thread smiley
erik quanstrom quans...@quanstro.net writes:

 Does anybody know if it's possible to use Plan 9 as an IPv4 router?

 plan 9 does a fine job of routing ip4 packets.  i used plan 9
 to do that for a 4 months recently during a network renumbering.

 if you do this, make sure you've made this revert to ip.c.  the

snip

OK, cool.  How is packet forwarding turned on/off?  (Or is it always
on?)

How do you specify the routing rules?  Somewhere in the NDB?



Re: [9fans] Plan 9 IPv4 router

2011-07-31 Thread David du Colombier
 OK, cool.  How is packet forwarding turned on/off?  (Or is it always
 on?)

echo iprouting /net/ipifc/clone

 How do you specify the routing rules?  Somewhere in the NDB?

For example, to route to network 192.168.1.0/24 via 192.168.0.1:

echo add 192.168.1.0 255.255.255.0 192.168.0.1 /net/iproute

See ip(3) for more details.

-- 
David du Colombier



Re: [9fans] Plan 9 IPv4 router

2011-07-31 Thread David du Colombier
 This URL is the development repository and I should probably
 extract a proper patch from it.

I put the patches in /n/sources/contrib/djc/nat.

It doesn't need IL, but IL is supported. That's why
the IL patches are included. You can remove the IL
parts if not needed.

-- 
David du Colombier



[9fans] mail client; general question web vs command

2011-07-31 Thread Rudolf Sykora
Hello everybody!

I've been using a gmail account with the usual access via a web
browser for quite a while.
Sometimes I get little angry when using it, for various reasons, often
due to the firefox's slowness to render the page (scrolling a longer
thread is often pain for me).
I'd like to ask you. Do you use some client like e.g. mutt / heirloom
mailx / some plan9 client, and find its utility superior to a
web-based way? Do you e.g. use imap to connect to gmail and read mail?
I wonder if one can use such thin clients and not loose to much of
comfort / lucity / clarity / ease of use.

What do you generally consider the 'sucklest' way of reading mail?
(except for not reading it...)

Thank you!
Ruda

(I at least want to e.g. know, that using a web-client, although it is
a pain, is probably the way to go, and that I should perhaps have a
look for a quicker / simpler browser...)



Re: [9fans] mail client; general question web vs command

2011-07-31 Thread Jacob Todd
Acme has Mail. It doesn't do threading like mutt or anything, but it works.


Re: [9fans] mail client; general question web vs command

2011-07-31 Thread hiro
I prefer gmail's basic html view. It's working reliably, because it's
not maintained any more: http://mail.google.com/mail/h/