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

UDP port on a response message.

0 views
Skip to first unread message

Kahless

unread,
Jul 23, 2003, 3:32:40 PM7/23/03
to
Hi all,

I'm using net-snmp library for a snmp manager project.
The problem that I have encountered is the following:
the manager (programmed using the net-snmp library) can send a get message
towards an agent on port udp:161 but can receive the response only on an
assigned fixed port (udp:10001)
How can I (if is possible) to tell the agent to respond on that port?
Is this the use of the parameter local_port of the netsnmp_session struct?

thank you for your answers.
--
Giampiero Torrielli

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Jul 24, 2003, 4:31:03 AM7/24/03
to
> the manager (programmed using the net-snmp library) can send a get message
> towards an agent on port udp:161 but can receive the response only on an
> assigned fixed port (udp:10001)
> How can I (if is possible) to tell the agent to respond on that port?

The agent will respond to the same port that the original request was
sent on. So if you want the response to go to port udp:10001 then
the request needs to be sent *from* udp:10001

That's pretty standard for IP-based communication.
It typically goes:

A.B.C.D:port E --> V.W.X.Y:port Z
A.B.C.D:port E <-- V.W.X.Y:port Z

Dave

kah...@libero.it

unread,
Jul 24, 2003, 10:01:25 AM7/24/03
to
> > the manager (programmed using the net-snmp library) can send a get me=
ssage
> > towards an agent on port udp:161 but can receive the response=

only on an
> > assigned fixed port (udp:10001)
> > How can I (if is p=

ossible) to tell the agent to respond on that port?
>
> The agent will=

respond to the same port that the original request was
> sent on. So =

if you want the response to go to port udp:10001 then
> the request need=

s to be sent *from* udp:10001
>
> That's pretty standard for IP-based =
communication.
> It typically goes:
>
> A.B.C.D:port E --> V.W.X.Y:=

port Z
> A.B.C.D:port E <-- V.W.X.Y:port Z

Ok, it is correct.
But =
my big, big, big problem is:
how can I send a GET message *from* port ud=
p:10001 using net-snmp library?

--
Giampiero.

0 new messages