9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] The regular python question
@ 2002-01-22 19:26 Russ Cox
  2002-01-23 18:53 ` Boyd Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2002-01-22 19:26 UTC (permalink / raw)
  To: 9fans

I have python working quite well on 9P2000 systems.
There is a small amount of backporting to be done
to get it going on 9P1 (third edition) systems, mostly very little
things like rewriting the dirstat calls.  If someone
wants to tackle that last bit, let me know.

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [9fans] ftpd
@ 2002-01-16 10:36 arisawa
  2002-01-22 17:02 ` [9fans] The regular python question Matt H
  0 siblings, 1 reply; 4+ messages in thread
From: arisawa @ 2002-01-16 10:36 UTC (permalink / raw)
  To: 9fans

Hello 9fans,

The line:
	fd = dial(data,"20",0,0);
in ftpd.c may make a trouble when the server has two IPs.
For example, plan9.aichi-u.ac.jp and ar.aichi-u.ac.jp is the
same machine with different IPs.
I could not get data from plan9.aichi-u.ac.jp from my home,
because my machines are inside of a boardband router with IP
masquerade.

The following may fix the problem.

term% diff /sys/src/cmd/ip/ftpd.c ftpd.c
151a152
> static	char*	myip;
208c209
< 	if(argc)
---
> 	if(argc){
209a211,212
> 		myip = ends->lsys;
> 	}
1558a1562,1568
> 		if(myip){
> 			char buf[80];
> 			snprint(buf, sizeof buf,"%s!20", myip);
> 			fd = dial(data, buf, 0, 0);
> 		}
> 		else
> 			fd = dial(data, "20", 0, 0);



Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-23 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-22 19:26 [9fans] The regular python question Russ Cox
2002-01-23 18:53 ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2002-01-16 10:36 [9fans] ftpd arisawa
2002-01-22 17:02 ` [9fans] The regular python question Matt H
2002-01-22 18:13   ` Boyd Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).