I am using in libnetfilter_queue library.
I need to change the dest ip in the packet. I change the dest ip and reinject the packet:
nfq_set_verdict(qh, id, NF_ACCEPT,size, originalPacket);
but change didn’t take affect.
However if i change the packet, copy it to new char array and call to set verdict with the copied array than the change take affect.
Am i doing something wrong?
Thank you
need to use NF_REPEAT verdict to reinject packet to the
same chain. Using NF_ACCEPT verdict injects packet to the subsequent
chain. But for this purpose you should mark packets to avoid loop,
i.e.: