Hello Niels,

OK. Understood.

I think the "configure" does not test if IP_RECVDSTADDR is present and 
usable. This means for hpux, the IP_RECVDSTADDR is enabled due to its 
definition in /usr/include/sys/socket.h but nothing enables the rest of 
the code to use this particular format.

As i said before it seems this part of code only gives three possibilities :
- the use of recvmsg() and sendmsg() with the socket option IP_RECVDSTADDR,
- the use of recvmsg() and sendmsg() on linux with the socket option 
IP_PKTINFO,
- for the others the use of recvfrom() and sendto() without any option.

The normal path for HPUX would be to chose the third one but 
IP_RECVDSTADDR is defined and not tested.

This specific socket option make the recvfrom() to give the destination 
address of the just received packet instead of the source address as 
defaults dictate. This specific error make the next sendto() to use a 
wrong address : it should the distant address but as long as the 
IP_RECVDSTADDR is active, this is the local address.

In summary, as long as this option is active, the snmpd is replying to 
itself.

is there a way to change the behaviour of "configure" to make it add a 
line like "#undef IP_RECVDSTADDR" somewhere ? I am sorry, i don't know 
(yet) how is structured the configure script.

Regards,
Jean-Paul VILLETTE





Le 13/11/2013 12:49, Niels Baggesen a écrit :
> On Wed, Nov 13, 2013 at 12:26:33PM +0100, Jean-Paul VILLETTE wrote:
>> Thanks for your mail. I don't understand what  your point is exactly.
>> What's your idea ? Do you mean the configure has been changed
>> (or patched) to better handle this option ?
> Configure tries to determine whether the option actually works.
>
> It would be good if you could confirm whether configure reaches the
> right conclusion in its current form.
>
> /Niels
>


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to