I'm working on a project using WireGuard and need to be able to set the fwmark for the ping packets. I already do this using code similar to this for other packets:
https://github.com/shadowsocks/shadowsocks-rust/blob/ea6eb27d0865203b69915836739e9e59258ac825/crates/shadowsocks/src/net/sys/unix/linux/mod.rs#L63-L78
I see two options to allow this:
- Add the ability to pass a custom socket (more flexible, could be useful for other quirks as well)
- Add the ability to pass the fwmark value and set it inside this crate.
Either one is fine for me and I'm happy to contribute this.
Which one do you prefer?
I'm working on a project using WireGuard and need to be able to set the fwmark for the ping packets. I already do this using code similar to this for other packets:
https://github.com/shadowsocks/shadowsocks-rust/blob/ea6eb27d0865203b69915836739e9e59258ac825/crates/shadowsocks/src/net/sys/unix/linux/mod.rs#L63-L78
I see two options to allow this:
Either one is fine for me and I'm happy to contribute this.
Which one do you prefer?