Open konstare opened 2 years ago
Pretty late here. Not sure if you solved this but here goes.
EthernetPacket
is only used for incoming packets and is immutable. If you would like to create your own packet (probably one that is outgoing), you will use the MutableEthernetPacket
.
You can find more information on how this is handled here
Hi, Is it possible with pnet to modify out-going IPv4 packets. So for example, i can catch a packet sent to "destination". Something like this:
What i want is to modify the ip4 packet(changing flags) and send to the destination this modified packet without the captured one. In other words, can i intercept a packet with pnet?