libipq and mark
Hi,
I like to know it it's possible to set the mark of a paquet in usermode using libipq ?
From the doc of lipipq it appears that only the payload can be changed. If it's really the case, have you an idea of the feasibility and difficulty to add this in libipq ?
This can be used by NuFW to have a user based mark system ! Thus enabling to have a per-user bandwith allocation !
BR,
Signature · 2 lines
Eric Leblond Nufw, Now User Filtering Works (http://www.nufw.org)
Quoted 4 lines · Eric Leblond
Hi,
I like to know it it's possible to set the mark of a paquet in usermode using libipq ?
Not that I know of.
To extent libipq you need to extend the ip_queue communication channel used to include the mark in the verdict messages (ipq_verdict_msg) and modify the libipq API to provide access to this new verdict field.
Then modify ip_queue.c ipq_mangle_ipv4 to copy the new mark from the verdict (also remember to look for mark modification in the routing part at the end of the same function).
Regards
Henrik