search for: so_mark

Displaying 4 results from an estimated 4 matches for "so_mark".

Did you mean: semark
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd daemon. I'd like to mark all sockets established by a tincd process with a mark passed as an argument in the command line. What could be the purpose of this new option? The goal of this option is to be able to have several tincd process running at the same time using the same port but using different ip. In
2017 Jun 20
2
dovecot & cap_net_admin capability
...* modify routing tables; * bind to any address for transparent proxying "IP_TRANSPARENT"; * set type-of-service (TOS) "IP_TOS" * clear driver statistics; * set promiscuous mode; * enabling multicasting; * use setsockopt(2) to set the following socket options: SO_DEBUG, SO_MARK, SO_PRIORITY (for a priority outside the range 0 to 6),SO_RCVBUFFORCE, and SO_SNDBUFFORCE Cheers, Michal Hlavinka
2017 Jun 20
0
dovecot & cap_net_admin capability
...; * bind to any address for transparent proxying "IP_TRANSPARENT"; > * set type-of-service (TOS) "IP_TOS" > * clear driver statistics; > * set promiscuous mode; > * enabling multicasting; > * use setsockopt(2) to set the following socket options: SO_DEBUG, SO_MARK, SO_PRIORITY (for a priority outside the range 0 to 6),SO_RCVBUFFORCE, and SO_SNDBUFFORCE None of these.
2016 Oct 06
0
Dev: new option to mark all tincd socket of a tincd process
...mething interesting? > Do you think its a hard work to do? > If not i could probably try to do it and propose a patch for that if you > think it is interesting. I think it is relatively easy to do. There are two places in src/net_socket.c where you would have to call setsockopt() with the SO_MARK option: configure_tcp() and setup_vpn_in_socket(). The first one is run for all incoming and outgoing TCP sockets, the second one sets up the UDP sockets. Try it out and see if it really allows you to do the mark-based routing you want. If it works, you can submit a patch or pull request. -- Met...