|
Hi,
I have a Linux box controlling a few
serial devices; and will like to write a SNMP agent to manage these serial
devices from a SNMP manager over a LAN. One way is to assign multiple IP
addresses to the Linux box network card; such that each IP address represent a
serial device. When the SNMP agent receives a SNMP request, it will determine
the target IP address, maps it to the appropriate serial device and carries out
the necessary operations over the serial port, and then send a SNMP respond
packet back to the manager if the operations are successful.
My questions:
1) Is there a API call to get the target and source
IP addresses from an incoming SNMP packet?
2) Is there an alternative to achieving what I wish
to do?
Many thanks in advance.
Regards ... Francis
|
