Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
From: Pidoux <f6bvp@free.fr>
To: cathrynham <cathrynm@junglevision.com>
Cc: linux-hams@vger.kernel.org
Subject: Re: netromd + AF_PACKET/PF_PACKET
Date: Sat, 22 Nov 2008 21:58:40 +0100	[thread overview]
Message-ID: <49287280.4020304@free.fr> (raw)
In-Reply-To: <4920E17A.9070006@junglevision.com>

Hi,

Actually netromd was using obsolete PF_INET, SOCK_PACKET and I changed it
to PF_PACKET, SOCK_PACKET in ax25-tools.0.0.8.3 version.

Like you reported I can observe also netromr "bad argument"

Thus I added some modification in netromd code to make it display debuging log messages correctly.
This lead to version ax25-tools.0.0.8.4 that can be downloaded from hre :

http://f6bvp.free.fr/logiciels/ax25/ax25-tools-0.0.8.4src_f6bvp.tgz

Here is an extract from ChangeLog file :

  ax25-tools (0.0.8.4)
          * netrom debug info was not correctly reported.
            Starting netromd -lid will now
            write useful information into /var/log/messages

   -- Bernard Pidoux <f6bvp@amsat.org>

  ax25-tools (0.0.8.3)
          * kernel info (/var/log/kernel/info) tells PF_INET, SOCK_PACKET is
          obsolete. net/socket.c  says it should be replaced by PF_PACKET.
          This is done in hdrvcom.c, net2kiss.c, yamcfg.c
          * PF_INET = AF_INET. Thus (AF_INET, SOCK_PACKET) is also replaced by
          AF_PACKET in netromd.c, mheardd.c, rxecho.c and kissparms.c.
          ax25/ax25.4 file updated accordingly.

   -- Bernard Pidoux <f6bvp@amsat.org>


This is a listing of /var/log/messages when using ax25d version 0.0.8.4 :
...
Nov 22 20:45:00 f6bvp-11 netromd[4996]: netromr: add_node: route to me
Nov 22 20:48:04 f6bvp-11 netromd[4996]: Add Node : FE6BVP-1:FEBBS
Nov 22 20:48:04 f6bvp-11 netromd[4996]: Neighbour: VK2XB-14 device: ax0
Nov 22 20:48:04 f6bvp-11 netromd[4996]: Quality: 154 obs: 6 ndigis: 0
Nov 22 20:48:04 f6bvp-11 netromd[4996]: netromr: SIOCADDRT: Invalid argument
Nov 22 20:48:09 f6bvp-11 netromd[4996]: netromr: add_node: quality less than worst_qual
Nov 22 20:48:14 f6bvp-11 netromd[4996]: Add Node : F6BVP-3:BVPCLS
Nov 22 20:48:14 f6bvp-11 netromd[4996]: Neighbour: VK2XB-14 device: ax0
Nov 22 20:48:14 f6bvp-11 netromd[4996]: Quality: 154 obs: 6 ndigis: 0
Nov 22 20:48:14 f6bvp-11 netromd[4996]: netromr: SIOCADDRT: Invalid argument
Nov 22 20:54:47 f6bvp-11 netromd[4996]: netromr: add_node: quality less than worst_qual
Nov 22 20:55:03 f6bvp-11 netromd[4996]: netromr: add_node: route to me
Nov 22 20:58:00 f6bvp-11 netromd[4996]: Add Node : F6BVP-3:BVPDX
Nov 22 20:58:00 f6bvp-11 netromd[4996]: Neighbour: F6BVP-14 device: ax0
Nov 22 20:58:00 f6bvp-11 netromd[4996]: Quality: 254 obs: 6 ndigis: 0
Nov 22 20:58:00 f6bvp-11 netromd[4996]: netromr: SIOCADDRT: Invalid argument
Nov 22 20:58:05 f6bvp-11 netromd[4996]: netromr: add_node: route to me
...
Hope this will help finding the invalid argument received by netromd.


73 de Bernard, f6bvp



cathrynham a écrit :
> cathrynham wrote:
>> netromd is giving me an error "netromr: SIOCADDRT"
>>
>> I just swapped AF_PACKET for PF_PACKET, SOCK_RAW and
>> that made the error go away, but I'm pretty sure that's not enough.
>>
>> Is this correct, that AF_PACKET going away is the
>> source of this error?  If so, what are my options.  Has someone
>> fixed this code yet, or can I still recompile the kernel to include 
>> AF_PACKET?
> No, no, wait a second.  Sorry, I see other programs like listen
> are accessing AF_PACKET fine.  Maybe it's a config issue? Hmm.
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-11-22 20:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24  8:29 LoTW and Linux Petr Hlozek, OK2CQR
2008-11-17  2:59 ` netromd + AF_PACKET/PF_PACKET cathrynham
2008-11-17  3:14   ` cathrynham
2008-11-22 20:58     ` Pidoux [this message]
2008-11-19  6:31 ` iptables versus ax25ipd cathrynham
2008-11-19  9:16   ` Steve Fraser
     [not found]   ` <22F4D895-DAAA-4C44-9500-4AE854AB1857@tssg.org>
2008-11-19 19:21     ` cathryn mataga

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=49287280.4020304@free.fr \
    --to=f6bvp@free.fr \
    --cc=cathrynm@junglevision.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