libtins
libtins copied to clipboard
Change interface index while sending packets in class [NetworkInterface]
Say I want to choose specific interface ad then sending a packet to specific IP through this interface [acts like a gateway] using this definition is not possible:
/** * \brief Constructs a NetworkInterface from an ip address. * * This abstracted interface will be the one that would be the gateway * when sending a packet to the given ip. * * \param ip The ip address being looked up. */ NetworkInterface(IPv4Address ip);