libtins icon indicating copy to clipboard operation
libtins copied to clipboard

Change interface index while sending packets in class [NetworkInterface]

Open ahmedtalaat327 opened this issue 2 years ago • 0 comments

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);

ahmedtalaat327 avatar May 13 '22 13:05 ahmedtalaat327