Full TCP/IP stack (QNX Neutrino)
io-net ... -p tcpip tcpip_options ...
The tcpip_options are one or more of the following, separated by commas without whitespace:
The npm-tcpip.so interface is a full TCP/IP stack. It provides protocol support to the network I/O manager, io-net. Supported address families include:
For routing socket information, see ROUTE in the Library Reference.
If you're working in resource-constrained environments, you might want to use npm-ttcpip.so, which implements a subset of the functionality usually found in full TCP/IP implementations. |
After configuring your hardware you should try to ping the machine from another to make sure it's configured correctly. If that doesn't work, check the parameters specified to your networking hardware.
If you want name resolution to work, you should also set up /etc/resolv.conf and /etc/hosts. |
While npm-tcpip.so is running, you can get statistics on the interfaces, routes, and connections from the netstat utility.
The following io-net command uses the NE-2000 driver (devn-ne2000.so), and the networking stack with IPSec and forwarding enabled. The ifconfig command configures the ethernet interface to an IP address of 10.0.0.163 and the route command set the default gateway to 10.0.0.25:
io-net -dne2000 -ptcpip ipsec,forward ifconfig en0 10.163 route add default 10.25
If running multiple stacks, a particular instance is targeted by clients with the SOCK environment variable, as follows:
io-net -i1 -ptcpip prefix=/alt SOCK=/alt ifconfig -a
/etc/autoconnect, dd, /etc/hosts, ifconfig, io-net, netstat, ping, pppd, /etc/resolv.conf, route, sysctl
"Network drivers (devn-*)" and "Network protocol modules (npm-*)" in the Utilities Summary
getsockopt(), ioctl(), setsockopt(), and ROUTE in the Library Reference
TCP/IP Networking in the Neutrino User's Guide