[snmp] wanted Information regarding the PORT from which
InformResponseis sendout
Birgit Arkesteijn
birgit at westhawk.co.uk
Wed Nov 15 14:48:57 GMT 2006
Hi Gejo,
I'm not sure I follow what you try to do.
The stack gives you no control over the source transport address.
Also, I feel you're trying to solve it at a low level.
However, if you get it work, good for you!
All the best.
Cheers, Birgit
On Wed, Nov 15, 2006 at 07:34:25PM +0530, Gejo.Thayil at aricent.com wrote:
> Hi Birjit,
>
> Thanks for your Immediate Response to my mail, I was thinking of a
> simple workaround to this problem
> and is still trying on it
>
> - what I was trying is that to close the socket once we receive an INFORM,
> then create it to send the RESPONSE
> so that IPSec now sees the packet coming from the same port (SNMP TRAP
> Port).
> - Again close the socket after sending RESPONSE,
> - DefaultInformContext(DefaultTrapContext) comes to know when socket is
> closed
> Now try to create the Socket after a delay. Thread.sleep(An optimum
> time);
> (This will takecare of the timegap between receiving and sending packet
> )
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> with this i could send out a RESPONSE to INFORM (for the first time from
> Received Port(162)),
> it again started listening on the same PORT(162) after sleeping for an
> optimum time
> received a 2nd INFORM but some socket creation error came before sending
> RESPONSE (I'm working on this)
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> I think if we try this way, the only drawback is it will drop any packet
> that comes while the stack is processing a RESPONSE to a received INFORM.
> Now that stack takes a processing time < 300mS (calculated by capturing
> INFORM and RESPONSE on ethereal) this is not a drawback at all
>
>
> Sadly I'm not an expert on Sockets, so its taking some time for me, will
> let you know if i can make this work
>
>
>
> Regards
>
> Gejo Joseph
> Flextronics Software Systems
> 18/1, Outer Ring Road
> Panathur Post, Bangalore
>
> "I would love to change the world, but no one would give me the source
> code"
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
More information about the snmp
mailing list