tcp_ipv6.c (a5a64498c194c82ecad3a2d67cff6231cda8d3dd) | tcp_ipv6.c (3ab5aee7fe840b5b1b35a8d1ac11c3de5281e611) |
---|---|
1/* 2 * TCP over IPv6 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on: --- 858 unchanged lines hidden (view full) --- 867 868 /* check the signature */ 869 genhash = tcp_v6_md5_hash_skb(newhash, 870 hash_expected, 871 NULL, NULL, skb); 872 873 if (genhash || memcmp(hash_location, newhash, 16) != 0) { 874 if (net_ratelimit()) { | 1/* 2 * TCP over IPv6 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on: --- 858 unchanged lines hidden (view full) --- 867 868 /* check the signature */ 869 genhash = tcp_v6_md5_hash_skb(newhash, 870 hash_expected, 871 NULL, NULL, skb); 872 873 if (genhash || memcmp(hash_location, newhash, 16) != 0) { 874 if (net_ratelimit()) { |
875 printk(KERN_INFO "MD5 Hash %s for " 876 "(" NIP6_FMT ", %u)->" 877 "(" NIP6_FMT ", %u)\n", | 875 printk(KERN_INFO "MD5 Hash %s for (%pI6, %u)->(%pI6, %u)\n", |
878 genhash ? "failed" : "mismatch", | 876 genhash ? "failed" : "mismatch", |
879 NIP6(ip6h->saddr), ntohs(th->source), 880 NIP6(ip6h->daddr), ntohs(th->dest)); | 877 &ip6h->saddr, ntohs(th->source), 878 &ip6h->daddr, ntohs(th->dest)); |
881 } 882 return 1; 883 } 884 return 0; 885} 886#endif 887 888struct request_sock_ops tcp6_request_sock_ops __read_mostly = { --- 1151 unchanged lines hidden (view full) --- 2040 .memory_allocated = &tcp_memory_allocated, 2041 .memory_pressure = &tcp_memory_pressure, 2042 .orphan_count = &tcp_orphan_count, 2043 .sysctl_mem = sysctl_tcp_mem, 2044 .sysctl_wmem = sysctl_tcp_wmem, 2045 .sysctl_rmem = sysctl_tcp_rmem, 2046 .max_header = MAX_TCP_HEADER, 2047 .obj_size = sizeof(struct tcp6_sock), | 879 } 880 return 1; 881 } 882 return 0; 883} 884#endif 885 886struct request_sock_ops tcp6_request_sock_ops __read_mostly = { --- 1151 unchanged lines hidden (view full) --- 2038 .memory_allocated = &tcp_memory_allocated, 2039 .memory_pressure = &tcp_memory_pressure, 2040 .orphan_count = &tcp_orphan_count, 2041 .sysctl_mem = sysctl_tcp_mem, 2042 .sysctl_wmem = sysctl_tcp_wmem, 2043 .sysctl_rmem = sysctl_tcp_rmem, 2044 .max_header = MAX_TCP_HEADER, 2045 .obj_size = sizeof(struct tcp6_sock), |
2046 .slab_flags = SLAB_DESTROY_BY_RCU, |
|
2048 .twsk_prot = &tcp6_timewait_sock_ops, 2049 .rsk_prot = &tcp6_request_sock_ops, 2050 .h.hashinfo = &tcp_hashinfo, 2051#ifdef CONFIG_COMPAT 2052 .compat_setsockopt = compat_tcp_setsockopt, 2053 .compat_getsockopt = compat_tcp_getsockopt, 2054#endif 2055}; --- 69 unchanged lines hidden --- | 2047 .twsk_prot = &tcp6_timewait_sock_ops, 2048 .rsk_prot = &tcp6_request_sock_ops, 2049 .h.hashinfo = &tcp_hashinfo, 2050#ifdef CONFIG_COMPAT 2051 .compat_setsockopt = compat_tcp_setsockopt, 2052 .compat_getsockopt = compat_tcp_getsockopt, 2053#endif 2054}; --- 69 unchanged lines hidden --- |