* update headers to linux v4.2
@ 2015-09-08 20:16 Szabolcs Nagy
0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2015-09-08 20:16 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 61 bytes --]
attached two independent patches following v4.2 uapi updates
[-- Attachment #2: 0001-add-new-IP_BIND_ADDRESS_NO_PORT-and-IPPROTO_MPLS-to-.patch --]
[-- Type: text/x-diff, Size: 1260 bytes --]
From 8e6c528bd625a6ef8d3bff13508329f64e5423cd Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
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
[-- Attachment #3: 0001-update-netinet-tcp.h-for-linux-v4.2.patch --]
[-- Type: text/x-diff, Size: 1474 bytes --]
From 8a9f1b6cfc0fb9b82c618704360d515418108ae5 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-08 20:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 20:16 update headers to linux v4.2 Szabolcs Nagy
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).