patch-2.1.101 linux/net/ipv6/tcp_ipv6.c
Next file: linux/net/ipv6/udp.c
Previous file: linux/net/ipv6/protocol.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri May 8 00:08:02 1998
- Orig file:
v2.1.100/linux/net/ipv6/tcp_ipv6.c
- Orig date:
Thu May 7 22:51:56 1998
diff -u --recursive --new-file v2.1.100/linux/net/ipv6/tcp_ipv6.c linux/net/ipv6/tcp_ipv6.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: tcp_ipv6.c,v 1.80 1998/05/02 12:47:15 davem Exp $
+ * $Id: tcp_ipv6.c,v 1.81 1998/05/03 14:31:10 alan Exp $
*
* Based on:
* linux/net/ipv4/tcp.c
@@ -213,7 +213,7 @@
hiscore=0;
sk = tcp_listening_hash[tcp_lhashfn(hnum)];
for(; sk; sk = sk->next) {
- if((sk->num == hnum) && (sk->family == AF_INET6)) {
+ if((sk->num == hnum) && (sk->family == PF_INET6)) {
struct ipv6_pinfo *np = &sk->net_pinfo.af_inet6;
score = 1;
@@ -272,7 +272,7 @@
/* Must check for a TIME_WAIT'er before going to listener hash. */
for(sk = tcp_established_hash[hash+(TCP_HTABLE_SIZE/2)]; sk; sk = sk->next) {
if(*((__u32 *)&(sk->dport)) == ports &&
- sk->family == AF_INET6) {
+ sk->family == PF_INET6) {
struct tcp_tw_bucket *tw = (struct tcp_tw_bucket *)sk;
if(!ipv6_addr_cmp(&tw->v6_daddr, saddr) &&
!ipv6_addr_cmp(&tw->v6_rcv_saddr, daddr) &&
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov