Does net-snmp perform any validation on session.peername?

Carlos Ichikawa <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAORK68FUbYUeJE==+7o5syTtNmZR7TV0EQ3LPrs5b_UFnA=_kg@mail.gmail.com>
snmp_open returns non-null when called with an invalid ip address. Is this
expected ?

Example:
mysession.peername = "192.168.1.0"
myhandle = snmp_open(mysession)
myhandle is not null
mysession.peername = "192garbish"
myhandle = snmp_open(mysession)
myhandle still not null

I guess the more general answer I'm looking for is how to valida that the
Ip address indicated by peername is reachable ?

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.