Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pdnsd Error in udp send: Invalid argument

3 views
Skip to first unread message

Matt Mills

unread,
Nov 20, 2004, 7:47:23 AM11/20/04
to po...@freebsd.org
Hi all,

I have been having problems with pdnsd since switching to 5.3-RELEASE.

I am using pdnsd-1.1.11a, installed from the ports collection. The
following error is always ouput when a query takes place:

Error in udp send: Invalid argument

I am using the exact same pdnsd.conf from a working 4.10-STABLE system,
so there should be no problems as far as that is concerned. I have
googled for this error and even emailed the author to no avail.

Anybody have any ideas?

--
Matt

Matt Mills

unread,
Nov 21, 2004, 8:44:15 AM11/21/04
to po...@freebsd.org
The author replied to my email shortly after posting to this list. It
seems that this is indeed a FreeBSD-related problem, which can be worked
around if you use the ./configure option --disable-src-addr-disc.

I will email the port maintainer with the necessary technical details.

--
Matt

Matt Mills

unread,
Nov 22, 2004, 10:18:35 AM11/22/04
to po...@freebsd.org
OK, another reply to myself.

The maintainer of the pdnsd port is apparently po...@oven.org. I sent an
email to this address with details of the problem and solution, but just
got a delivery failure notice.

Where do I go from here to get this solved?

--
Matt

Andrey Slusar

unread,
Nov 22, 2004, 1:22:34 PM11/22/04
to Matt Mills, po...@freebsd.org

See the PR ports/73296 - this is a update to version 1.2. This bug is
reproduced on the version 1.2?

--
Andrey Slusar.

Matt Mills

unread,
Nov 23, 2004, 6:49:59 PM11/23/04
to Andrey Slusar, po...@freebsd.org
Andrey Slusar wrote:
> Mon, 22 Nov 2004 15:18:35 +0000, Matt Mills wrote:
[...]

>> The maintainer of the pdnsd port is apparently po...@oven.org. I
>> sent an email to this address with details of the problem and
>> solution, but just got a delivery failure notice.
>>
>> Where do I go from here to get this solved?
>
> See the PR ports/73296 - this is a update to version 1.2. This bug is
> reproduced on the version 1.2?

Yes, the bug is still existent in v1.2.

Just for clarity, the reply I had from the author of pdnsd which
confirmed a workaround can be found below.

<snip>
Based on the information you have given me, I have traced the source of
the error message to the sendmsg() call in the function
udp_answer_thread() in the file dns_answer.c. It seems to me that
something in the kernel is complaining about the way the "struct msghdr
*msg" argument is set up. My guess is that the kernel doesn't like the
control message given via the msg_control field of the struct msghdr.

To test this, I suggest that you recompile pdnsd after running configure
with the --disable-src-addr-disc option. This will set the msg_control
field to NULL, so if this really was the problematic part of the data
structure, the sendmsg() call should be able to work normally.

Of course with the --disable-src-addr-disc, UDP source address discovery
will be disabled. I don't know how important this is to you.
The control message necessary for UDP source address discovery is very
platform dependent and rather obscure. Unfortunately, I don't have any
experience with FreeBSD systems, so we will need input from someone with
the necessary expertise to get this fixed properly.
</snip>

Shall I commit a PR, or does anyone have further insights?

--
Matt

0 new messages