This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Original 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 fastforward=1 option alone implicitly enables forwarding.
io-net -i1 -ptcpip prefix=/alt SOCK=/alt ifconfig -a
This version of the TCP/IP stack is the default when you install QNX Momentics; npm-tcpip.so is a symbolic link to npm-tcpip-v4.so. If you install the Extended Networking TDK, npm-tcpip.so automatically becomes a link to the npm-tcpip-v6.so module.
This npm-tcpip-v4.so module supports the latest RFCs, including UDP, IP, TCP, and SCTP. It also supports forwarding, broadcast and multicast, hardware checksum support, routing sockets, Unix domain sockets, multilink PPP, PPPoE, supernetting (CIDR), NAT/IP filtering, ARP, ICMP, and IGMP, as well as CIFS, DHCP, AutoIP, DNS, NFS (v2 and v3 server/client), NTP, RIP, RIPv2, and an embedded web server. To create applications for this stack, you use the industry-standard BSD socket API. This version of the TCP/IP stack Also includes optimized forwarding code for additional performance and efficient packet routing when the stack is functioning as a network gateway.
You can't umount Qnet and the full TCP/IP. You may, however, create an io-net producer module that supports unmounting. |
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 you're running multiple stacks, clients can target a particular instance by using the SOCK environment variable, as follows:
io-net -i1 -ptcpip prefix=/alt SOCK=/alt ifconfig -a
You can enable only forwarding by the following:
io-net -ptcpip forward,fastforward=0
/etc/autoconnect, dd, /etc/hosts, ifconfig, io-net, netstat, npm-tcpip.so, npm-tcpip-v6.so, 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