]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_minisocks.c
[TCP]: Move code from tcp_ecn.h to tcp*.c and tcp.h & remove it
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_minisocks.c
index a12b08fca5ad013f817b15d0cea589867d074e58..36a8fbd0e64ef799a6009176fb537af92b64cd73 100644 (file)
@@ -368,6 +368,12 @@ void tcp_twsk_destructor(struct sock *sk)
 
 EXPORT_SYMBOL_GPL(tcp_twsk_destructor);
 
+static inline void TCP_ECN_openreq_child(struct tcp_sock *tp,
+                                        struct request_sock *req)
+{
+       tp->ecn_flags = inet_rsk(req)->ecn_ok ? TCP_ECN_OK : 0;
+}
+
 /* This is not only more efficient than what we used to do, it eliminates
  * a lot of code duplication between IPv4/IPv6 SYN recv processing. -DaveM
  *