Article delegate-en/2012 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2010@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: how to get the server/client info in the ftp-data filter
03 Dec 2002 03:38:23 GMT "Wu Jiafu" <p2idqbdyi-mnvdjlzx4rfr.ml@ml.delegate.org>


Great! It works very well. Thanks a lot.

Jeff

----- Original Message -----
From: "Yutaka Sato" <feedback@delegate.org>
To: <feedback@delegate.org>
Cc: <p2idqbdyi-mnvdjlzx4rfr.ml@ml.delegate.org>
Sent: Tuesday, December 03, 2002 1:17 AM
Subject: Re: [DeleGate-En] how to get the server/client info in the ftp-data
filter


> Hi,
>
> On 12/02/02(19:55) you "Wu Jiafu" <p2idqbdyi-mnvdjlzx4rfr.ml@ml.delegate.org> wrote
> in <_A2009@delegate-en.ML_>
>  |Thanks a lot for your kindly help. But after applying the patch, it does
not
>  |work so well:
>  |
>  |SERVER_HOST=-
>  |SERVER_ADDR=(null)
>  |
>  |I added one line to the patched ftp.c, then it seems work:
>  |
>  |SERVER_HOST=test.domain.com
>  |SERVER_ADDR=192.168.0.1
>  |
>  |Since I am not quite understanding the structure of delegate, there
might be
>  |lots of side-effects of this changing. Would you please have a look?
>
> Thanks for your notice.  I tried to minimize the patch before sending
> it out, to do over minimization and sent it out without testing X-)
> I remember that the patch for ftp.c:FTP_data_relay() was "if ... else"
> statement originally.  So I'll do like this in the official release.
>
>   xc = 0;
>   Verbose("FTP data-relay(%d,%d): bufsize=%d\n",src,dst,size);
>
> + strcpy(dataConn->dd_selector,D_SELECTOR);
> + if( FS->fs_host[0] )
> + wordScan(FS->fs_host,dataConn->sv.p_host); /* set REAL_HOST */
> + else
>   if( REAL_HOST[0] == 0 )
>   strcpy(dataConn->sv.p_host,"-"); /* for DST_PROTO */
>   else strcpy(dataConn->sv.p_host,REAL_HOST);
>
>
> Cheers,
> Yutaka
> --
>   @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
>  ( - ) National Institute of Advanced Industrial Science and Technology
(AIST)
> _<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
> Do the more with the less -- B. Fuller



  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V