From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8468 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: update headers to linux v4.2 Date: Tue, 8 Sep 2015 22:16:37 +0200 Message-ID: <20150908201637.GN28959@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="iVCmgExH7+hIHJ1A" X-Trace: ger.gmane.org 1441743428 24637 80.91.229.3 (8 Sep 2015 20:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 20:17:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8480-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 08 22:17:07 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZZPK9-00085U-Pn for gllmg-musl@m.gmane.org; Tue, 08 Sep 2015 22:17:01 +0200 Original-Received: (qmail 32688 invoked by uid 550); 8 Sep 2015 20:16:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32628 invoked from network); 8 Sep 2015 20:16:48 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:8468 Archived-At: --iVCmgExH7+hIHJ1A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline attached two independent patches following v4.2 uapi updates --iVCmgExH7+hIHJ1A Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-add-new-IP_BIND_ADDRESS_NO_PORT-and-IPPROTO_MPLS-to-.patch" >From 8e6c528bd625a6ef8d3bff13508329f64e5423cd Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 8 Sep 2015 19:31:58 +0000 Subject: [PATCH] add new IP_BIND_ADDRESS_NO_PORT and IPPROTO_MPLS to netinet/in.h IP_BIND_ADDRESS_NO_PORT is a SOL_IP socket option to delay src port allocation until connect in case src ip is set with bind(port=0). new in linux v4.2, commit 90c337da1524863838658078ec34241f45d8394d IPPROTO_MPLS protocol number for mpls over ip. new in linux v4.2, commit 730fc4371333636a00fed32c587fc1e85c5367e2 --- include/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/netinet/in.h b/include/netinet/in.h index 1ed3e6f..622bdfe 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -103,6 +103,7 @@ uint16_t ntohs(uint16_t); #define IPPROTO_SCTP 132 #define IPPROTO_MH 135 #define IPPROTO_UDPLITE 136 +#define IPPROTO_MPLS 137 #define IPPROTO_RAW 255 #define IPPROTO_MAX 256 @@ -200,6 +201,7 @@ uint16_t ntohs(uint16_t); #define IP_MINTTL 21 #define IP_NODEFRAG 22 #define IP_CHECKSUM 23 +#define IP_BIND_ADDRESS_NO_PORT 24 #define IP_MULTICAST_IF 32 #define IP_MULTICAST_TTL 33 #define IP_MULTICAST_LOOP 34 -- 2.4.1 --iVCmgExH7+hIHJ1A Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-update-netinet-tcp.h-for-linux-v4.2.patch" >From 8a9f1b6cfc0fb9b82c618704360d515418108ae5 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 8 Sep 2015 19:50:26 +0000 Subject: [PATCH] update netinet/tcp.h for linux v4.2 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 --- include/netinet/tcp.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index 52358c7..949c590 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -27,6 +27,9 @@ #define TCP_FASTOPEN 23 #define TCP_TIMESTAMP 24 #define TCP_NOTSENT_LOWAT 25 +#define TCP_CC_INFO 26 +#define TCP_SAVE_SYN 27 +#define TCP_SAVED_SYN 28 #define TCP_ESTABLISHED 1 #define TCP_SYN_SENT 2 @@ -164,6 +167,10 @@ struct tcp_info uint32_t tcpi_total_retrans; uint64_t tcpi_pacing_rate; uint64_t tcpi_max_pacing_rate; + uint64_t tcpi_bytes_acked; + uint64_t tcpi_bytes_received; + uint32_t tcpi_segs_out; + uint32_t tcpi_segs_in; }; #define TCP_MD5SIG_MAXKEYLEN 80 -- 2.4.1 --iVCmgExH7+hIHJ1A--