ip_portmap_add() function
Register port mapping on the external interface to internal interface. When the same port mapping is registered again, the old mapping is overwritten. In this implementation, only 1 unique port mapping can be defined for each target address/port.
Arguments
maddr
ip address of the external interface
mport
mapped port on the external interface, in host byte order.
daddr
destination ip address
dport
destination port, in host byte order.