1. 31 Jul, 2017 1 commit
    • Brian Russell's avatar
      Add socket option BINDTODEVICE · b963542e
      Brian Russell authored
      Linux now supports Virtual Routing and Forwarding (VRF) as per:
      
      https://www.kernel.org/doc/Documentation/networking/vrf.txt
      
      In order for an application to bind or connect to a socket with an
      address in a VRF, they need to first bind the socket to the VRF device:
      
          setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1);
      
      Note "dev" is the VRF device, eg. VRF "blue", rather than an interface
      enslaved to the VRF.
      
      Add a new socket option, ZMQ_BINDTODEVICE, to bind a socket to a device.
      In general, if a socket is bound to a device, eg. an interface, only
      packets received from that particular device are processed by the socket.
      
      If device is a VRF device, then subsequent binds/connects to that socket
      use addresses in the VRF routing table.
      b963542e
  2. 04 Apr, 2017 1 commit
    • Jake Cobb's avatar
      Prevent DOS by asserts in TCP tuning (#2492) · 5d5263ed
      Jake Cobb authored
      * Prevent DOS by asserts in TCP tuning
      
      -Propagates socket option errors from the
      tuning functions to the callers.
      -Asserts a subset of error conditions during tuning,
      excluding external network causes.
      -Checks tuning results in 3 call sites and treats
      them like failures to connect, accept, etc.
      
      * Fix variable name
      
      * Remove lambda requiring C++11
      5d5263ed
  3. 01 Jun, 2016 1 commit
  4. 14 May, 2016 1 commit
  5. 04 May, 2016 1 commit
  6. 21 Feb, 2016 3 commits
  7. 18 Feb, 2016 1 commit
  8. 28 Jan, 2016 1 commit
  9. 06 Sep, 2015 1 commit
  10. 21 Aug, 2015 1 commit
  11. 16 Aug, 2015 1 commit
  12. 14 Aug, 2015 2 commits
  13. 08 Jul, 2015 1 commit
  14. 02 Jun, 2015 1 commit
  15. 22 Apr, 2015 1 commit
  16. 22 Jan, 2015 1 commit
  17. 28 Jul, 2014 1 commit
  18. 22 Jun, 2014 2 commits
    • Martin Hurton's avatar
      Fix memory leak in socks connecter · b73d1c8f
      Martin Hurton authored
      b73d1c8f
    • Martin Hurton's avatar
      Add support for SOCKS proxies · f06ca69a
      Martin Hurton authored
      This is still raw and experimental.
      To connect through a SOCKS proxy, set ZMQ_SOCKS_PROXY socket option on
      socket before issuing a connect call, e.g.:
      
          zmq_setsockopt (s, ZMQ_SOCKS_PROXY,
              "127.0.0.1:22222", strlen ("127.0.0.1:22222"));
          zmq_connect (s, "tcp://127.0.0.1:5555");
      
      Known limitations:
      - only SOCKS version 5 supported
      - authentication not supported
      - new option is still undocumented
      f06ca69a