Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
From: Jeremy Utley <jerutley@gmail.com>
To: linux-hams@vger.kernel.org
Subject: Re: ax25ipd issue
Date: Sat, 11 Jun 2005 21:50:53 -0700	[thread overview]
Message-ID: <d5d4185b05061121502bfbdaf8@mail.gmail.com> (raw)
In-Reply-To: <1118520574.1282.10.camel@oh2bns.ampr.org>

On 6/11/05, Tomi Manninen <oh2bns@sral.fi> wrote:
> On Sat, 2005-06-11 at 22:54, Jeremy Utley wrote:
> 
> > On 6/11/05, Tomi Manninen <oh2bns@sral.fi> wrote:
> > > Ax25ipd is completely stateless, so the other alternative would be
> > > to resolve for each packet. That would be braindead if you ask me...
> 
> > Does ax25ipd initiate a SYN/ACK handshake with the remote system only
> > at startup, and maintain the connection, or does it initiate the
> > connection, send it's data, and terminate the connection, reopening it
> > later when there is more data to send?  If it's the latter, then my
> > own personal opinion is that it should be doing a DNS lookup for each
> > connection it initiates.  And if it's using UDP instead of TCP, then
> > yes, each individual packet should be accompanied by a DNS lookup
> > request.
> 
> AX25IP works with not TCP, not UDP, but with IP protocol 93. It's a
> stateless protocol consisting of not much else than wrapping an
> AX.25 packet to an IP frame. Then there are variants that use UDP
> to do pretty much the same.
> 
> If doing a DNS lookup for each outgoing AX.25 packet is ok for
> people then so be it. You have the source. Modify it.
> 
> I find it braindead. The fix should be something else.

Not to flame, but I find your implementation braindead.  IP addresses
change, and the whole purpose of DNS is to make it so you don't have
to remember ip's - you can use friendly names instead.  If your
application cannot respect the DNS TTL value as specified by the name
server that provides the reverse mapping (and on the dyndns services
such as no-ip this are naturally set very low), then IMHO, it's a
broken application.

Since the program is using a stateless mode of communication, then it
*IS* necessary for the program to either (a) respect the TTL setting
provided by the remote authoritative DNS server, or (b) make a call to
gethostbyname() (If I remember my c networking code that's the
function used) to translate the hostname to the IP each an every time.
 Anything else is irresponsible, and broken, because you're relying on
data that is outdated.

Jeremy, NW7JU

  parent reply	other threads:[~2005-06-12  4:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-11 13:38 ax25ipd issue Chuck Hast
2005-06-11 15:41 ` John Hurst
2005-06-12 19:05   ` Bernard Pidoux
2005-06-12 21:37     ` Chuck Hast
2005-06-13  9:50       ` [fpac] " Bernard Pidoux
2005-06-13 11:19         ` Chuck Hast
2005-06-11 19:43 ` Tomi Manninen
2005-06-11 19:54   ` Jeremy Utley
2005-06-11 20:09     ` Tomi Manninen
2005-06-11 20:19       ` John Hurst
2005-06-11 20:32         ` David D. Hagood
2005-06-11 20:51           ` Chuck Hast
2005-06-11 20:45         ` Chuck Hast
2005-06-23 11:51           ` Steve Fraser
2005-06-23 12:15             ` Chuck Hast
2005-06-23 16:13             ` Bernard Pidoux
2005-06-11 23:03       ` Steve Fraser
2005-06-12  4:50       ` Jeremy Utley [this message]
2005-06-12 14:24         ` Tomi Manninen
  -- strict thread matches above, loose matches on Subject: below --
2005-06-11 20:18 dplatt

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=d5d4185b05061121502bfbdaf8@mail.gmail.com \
    --to=jerutley@gmail.com \
    --cc=linux-hams@vger.kernel.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