linux-hams.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: f6bvp <f6bvp@free.fr>
To: Thomas Osterried <thomas@osterried.de>
Cc: linux-hams@vger.kernel.org,
	Francois Romieu <romieu@fr.zoreil.com>,
	David Ranch <dranch@trinnet.net>, F3KT <f3kt@free.fr>,
	Eric Dumazet <edumazet@google.com>,
	k4gbb1@embarqmail.com, Woldanski Lee <ve7fet@tparc.org>
Subject: Re: Resend : [PATCH] AX25 rose_call - replacing carriage return by newlines
Date: Mon, 8 Aug 2022 14:31:35 +0200	[thread overview]
Message-ID: <71e52ce6-438c-8a90-6241-f6c3409fab8d@free.fr> (raw)
In-Reply-To: <ABFC096C-8F65-49C9-8BB9-7B75B3CE30B7@osterried.de>

Hi Thomas,

Many thanks for providing your feelings about what I have done.

I understand you don't want to change old AX.25 tools that are 
convenient for packet radio.

No problem.

As I needed a simple user application to connect ROSE network I will 
still use my application for rose kernel module debugging.

"call" is a multi protocol application that is working for AX25 or 
Netrom but does abolutely not work for rose as it is quite buggy.

This is why I preferred to adapt rose_call that is a single protocol 
simple application.

I already repaired rose module in (net-next kernel 5.19+) that had been 
broken by a patch applied two years ago without any user checking. Very 
bad behavior indeed from AX25 and ROSE so called maintainers. Reverting 
the patch did the job. Without all rose users have to keep using 5.4.79 
kernel.

I spend the last hours to repair call application and rose protocol is 
now working. However it will take a few days to certify the whole.

73 de Bernard, f6bvp / ai7bg

link to commit :

https://lore.kernel.org/all/20201119191043.28813-1-anmol.karan123@gmail.com/

link to call screen image
http://f6bvp.org/call_screen.png


Le 07/08/2022 à 21:07, Thomas Osterried a écrit :
> Hello,
> 
> I don't think netev@ is the right addressee here. netdev is for kernel, not for userspace programs like telnet, libreoffice or X11. Or am I wrong? I removed netdev from the list of receipients.
> 
> 
> Your patch makes things bad.
> Reason: see man page:
> 
>         ax25_call, netrom_call, rose_call and tcp_call establish an AX.25, NET/ROM, ROSE or
>         a TCP connection in a manner suitable for calling from  either  the  ax25d  program
>         directly,  or  from the node program as an external command. By setting the command
>         line arguments appropriately it is possible to set the local  callsign  from  which
>         the call will be made. No translation of the end of lines is performed by this pro‐
>         gram.
> 
> 
> Explanation:
> EOL convention in PacketRadio is '\r'. Not '\n', and not '\r\n'. There's no algorithm possible for autodetection - so many people have tried over the years, all have failed.
> The last sentense, "No translation of the end of lines is performed by this program." is important; it explains the purpose of the program and why it is implemented this way.
> 
> The sense of ax25_call is, for example, that it is called from ax25d (i.e. if user connects you to -10, you might pass the connection over to your local mailbox in the LAN).
> Same for netrom_call, rose_call.
> These commands are not intended for a unix user to be executed directly on the shell. That's why they reside in /usr/sbin.
> 
> If the program is used as intended, but with your changes, the packet-radio-user sees now in his terminal:
> ===
> Connecting to %s @ %s ...[linefeed]
>                          *** Connected[linefeed]
>                                                 Hello user xy, welcome to our BBS.
> Last login...
> mailboxprompt> [linefeed]
>                 *** Disconnected[linefeed]
> ===
> 
> => his session is messed up.
> 
> 
> Users from shell normally use the call command, which does the correct EOL conversion.
> 
> 
> If you have a special usecase, that's out of the scope of the current demands, you may implement a comandline option for changing the EOL character behavior.
> But rose_call becomes with such an addition more and more like call. I see no reason why this is useful.
> 
> Apart from EOL in the messages, you implemented an EOL-changer for the input buffer.
> You missed implementing an EOL changer for what unix user enters (normaly, his lines end with \n): Unix users press enter and don't know, that they have to enter ^M so that remote side understands your line correctly.
> 
> 
> 
> A site note on your remark
>> However once connected rose_call displays remote message without linefeed. Consequently it is impossible to read messages.
> 
> If the remote site is using a software that does not behave like a normal packet-radio-software,
> then you could either try to change all client terminal softwares in the world and make \n the new EOL standard,
> or please the remote site to correct the EOL according to what's everywhere else used in the packet-radio world.
> 
> 
> ..and one comment inline:
> 
>> Am 07.08.2022 um 20:21 schrieb f6bvp <f6bvp@free.fr>:
>>
>> [PATCH] AX25 rose_call - replacing carriage return by newlines
>>
>> Previous patch was reversed... resending correct one.
>>
>> I have been using intensively rose_call application (part of ax25tools/user_call library) while debugging rose connect issue.
>>
>> However once connected rose_call displays remote message without linefeed. Consequently it is impossible to read messages.
>>
>> For example calling local node :
>>
>> # rose_call rose0 f6bvp f6bvp-4 2080175524
>> Connecting to f6bvp-4 @ 2080175524 ...
>>
>> *** Connected
>>
>> F6BVP-4 (Commands = ?) : Aug  5 2022) for LINUX (help = h)
>>
>>
>> Then issuing command P to the connected local node, all answer
>> lines are superimposed.
>>
>> F6BVP-4 (Commands = ?) : Switch Port
>>
>>
>> Now with the proposed patch is the complete info displayed:
>>
>> # ./rose_call rose0 f6bvp f6bvp-4 2080175524
>>
>> Connecting to f6bvp-4 @ 2080175524 ...
>>
>> *** Connected
>>
>> User call : F6BVP-0
>>
>> Welcome to the last release of Fpac!
>>
>> This file is fpac.hello and is displayed when
>>
>> a user connects to the node.
> 
> I see
> 
> many more
> 
> newlines.
> 
>>
>>
>>
>> FPAC-Node v 4.1.3 (built Aug  5 2022) for LINUX (help = h)
>>
>> F6BVP-4 (Commands = ?) :
>>
>>
>> In file rose_call.c carriage returns are also replaced by newlines
>> in order to let error messages to be correctly displayed.
>>
>> Cc: Thomas DL9SAU Osterried <thomas@osterried.de>
>> Cc: Francois Romieu <romieu@fr.zoreil.com>
>> Signed-off-by: Bernard Pidoux <f6bvp@free.fr>
>>
>> <replace_return-linefeed_in_rose_call.patch>
> 
> 
> vy 73,
>        - Thomas  dl9sau

  parent reply	other threads:[~2022-08-08 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-30 15:08 rose timer t error displayed in /proc/net/rose Bernard f6bvp
2022-08-01  0:39 ` Francois Romieu
2022-08-01  8:06   ` Thomas Osterried
2022-08-01  9:19     ` Bernard f6bvp
2022-08-01 15:44     ` Francois Romieu
2022-08-01 19:06       ` Thomas Osterried
2022-08-01 19:33       ` Bernard f6bvp
2022-08-07 18:04       ` [PATCH] AX25 rose_call - replacing carriage return by newlines f6bvp
2022-08-07 18:21       ` Resend : " f6bvp
     [not found]         ` <ABFC096C-8F65-49C9-8BB9-7B75B3CE30B7@osterried.de>
2022-08-08 12:31           ` f6bvp [this message]
2022-08-01  8:54   ` rose timer t error displayed in /proc/net/rose Bernard f6bvp
2022-08-01 10:43   ` Bernard f6bvp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71e52ce6-438c-8a90-6241-f6c3409fab8d@free.fr \
    --to=f6bvp@free.fr \
    --cc=dranch@trinnet.net \
    --cc=edumazet@google.com \
    --cc=f3kt@free.fr \
    --cc=k4gbb1@embarqmail.com \
    --cc=linux-hams@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    --cc=thomas@osterried.de \
    --cc=ve7fet@tparc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).