1. 20 10月, 2016 1 次提交
  2. 04 7月, 2016 1 次提交
    • R
      make brace placement in public header struct definitions consistent · befa5866
      Rich Felker 提交于
      placing the opening brace on the same line as the struct keyword/tag
      is the style I prefer and seems to be the prevailing practice in more
      recent additions.
      
      these changes were generated by the command:
      
      find include/ arch/*/bits -name '*.h' \
      -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} +
      
      and subsequently checked by hand to ensure that the regex did not pick
      up any false positives.
      befa5866
  3. 10 6月, 2016 1 次提交
    • S
      add new tcp_info fields from linux v4.6 · 34987775
      Szabolcs Nagy 提交于
      new fields and associated linux commit:
      tcpi_notsent_bytes, tcpi_min_rtt cd9b266095f422267bddbec88f9098b48ea548fc
      tcpi_data_segs_in, tcpi_data_segs_out a44d6eacdaf56f74fad699af7f4925a5f5ac0e7f
      34987775
  4. 25 1月, 2016 1 次提交
    • S
      update netinet/tcp.h for linux v4.2 · 4da2d965
      Szabolcs Nagy 提交于
      TCP_CC_INFO is a new socket option to get congestion control info without
      netlink (union tcp_cc_info is in linux/inet_diag.h kernel header).
      linux commit 6e9250f59ef9efb932c84850cd221f22c2a03c4a
      
      TCP_SAVE_SYN, TCP_SAVED_SYN socket options are for saving and getting the
      SYN headers of passive connections in a server application.
      linux commit cd8ae85299d54155702a56811b2e035e63064d3d
      
      Add new tcpi_* fields to struct tcp_info implementing RFC4898 counters.
      linux commit 2efd055c53c06b7e89c167c98069bab9afce7e59
      4da2d965
  5. 18 1月, 2016 1 次提交
    • K
      netinet/tcp: Add TCPOPT, TCPOLEN constants · 53f41fb5
      Kylie McClain 提交于
      Programs such as iptables depend on these constants, which can also
      be found defined in other libcs.
      
      Since only TCP_* is reserved as part of tcp.h's namespace, we hide
      them behind _BSD_SOURCE (and therefore _DEFAULT_SOURCE) to expose
      them by default, but keep it standard conforming.
      53f41fb5
  6. 21 7月, 2014 1 次提交
  7. 06 2月, 2014 2 次提交
    • R
      fix use of legacy u_intN_t types in netinet/tcp.h · 685b1cd4
      Rich Felker 提交于
      policy is to avoid using these types except where they are needed for
      namespace conformance. C99-style stdint.h types should be used
      instead.
      685b1cd4
    • R
      add support for BSD struct tcphdr in netinet/tcp.h · fdaaa68d
      Rich Felker 提交于
      there are two versions of this structure: the BSD version and the GNU
      version. previously only the GNU version was supported. the only way
      to support both simultaneously is with an anonymous union, which was a
      nonstandard extension prior to C11, so some effort is made to avoid
      breakage with compilers which do not support anonymous unions.
      
      this commit is based on a patch by Timo Teräs, but with some changes.
      in particular, the GNU version of the structure is not exposed unless
      _GNU_SOURCE is defined; this both avoids namespace pollution and
      dependency on anonymous unions in the default feature profile.
      fdaaa68d
  8. 21 12月, 2013 1 次提交
  9. 24 11月, 2013 2 次提交
  10. 31 8月, 2013 2 次提交
  11. 25 7月, 2013 1 次提交
  12. 02 4月, 2013 1 次提交
  13. 31 1月, 2013 1 次提交
    • R
      SOL_TCP is nonstandard and not in the reserved namespace · 725c5552
      Rich Felker 提交于
      alternatively, we could define it in sys/socket.h since SO* is
      reserved there, and tcp.h includes sys/socket.h in extensions mode.
      
      note that SOL_TCP is simply wrong and it's only here for compatibility
      with broken applications. the correct argument to pass for setting TCP
      socket options is IPPROTO_TCP, which of course has the same value as
      SOL_TCP but works everywhere.
      725c5552
  14. 07 12月, 2012 1 次提交
  15. 08 9月, 2012 2 次提交
  16. 23 5月, 2012 1 次提交
  17. 19 9月, 2011 1 次提交
  18. 12 2月, 2011 1 次提交