Nп/п : 82 из 86
От : Wilfred van Velzen 2:280/464 04 ноя 24 21:03:12
К : Jay Harris 04 ноя 24 23:14:01
Тема : Re: ping / traceroute
----------------------------------------------------------------------------------
@MSGID: 2:280/464 67292967
@REPLY: 1:229/664 e9b288d0
@TID: FMail-lnx64 2.3.2.4-B20240523
@RFC-X-No-Archive: Yes
@TZUTC: 0100
@CHRS: CP850 2
@PID: GED+LNX 1.1.5-b20240306
Hi Jay,
On 2024-11-04 14:49:32, you wrote to me:
Wv>> DS> So if I read your comment you would like to accept a ping from
Wv>> ping DS> but not reply with ping as from
Wv>> Yes, that last restriction is (very) important, otherwise PONG messages
Wv>> could "bounce" back and forth indefinitly...
JH> my $myname = `Ping Robot`; # From: name in PONG reply. Cannot be `PING`
JH> [...]
JH> # Do not set $myname to `PING`
JH> if ( uc($myname) eq "PING" ) { die "ERROR: \\$myname cannot be PING"; }
JH> # Check if message is netmail & addressed to PING (case insensitive)
JH> if ( length($area) == 0 && uc($toname) eq "PING" ) {
JH> [...]
JH> I think this would do that.
I think so too.
JH> It would accept a netmail addressed to "Ping" and also from "Ping".
JH> If someone tried setting $myname to "Ping" the script would exit with
JH> an error.
If someone wants to change the script to do so, they could also
remove the check. So the check is kind of a waste of cpu cycles. The
comment should suffice.
JH> The reply would be from "Ping Robot" to "Ping" which (if the remote
JH> system has a ping robot) would trigger a response from that system,
JH> e.g: From: Ping Robot & To: Ping Robot.
Indeed.
Bye, Wilfred.
--- FMail-lnx64 2.3.2.4-B20240523
* Origin: FMail development HQ (2:280/464)
SEEN-BY: 50/109 103/705 104/117 124/5016 153/757
154/10 30 203/0 218/840
SEEN-BY: 221/0 1 6 360 229/426 240/1120 5832
280/464 5003 5006 292/854 8125
SEEN-BY: 301/1 310/31 335/364 341/66 234 396/45
423/120 452/28 166 460/58 256
SEEN-BY: 460/1124 5858 463/68 467/888 633/280
712/848 770/1 5000/111 5005/49
SEEN-BY: 5010/352 5015/46 5020/400 715 828 846 848
1042 4441 8912 12000
SEEN-BY: 5030/49 1081 5053/51 5054/8 30 5061/133
5075/128 5083/444
@PATH: 280/464 460/58 221/6 5020/1042 4441