tcp_input.c (24face5416c3533334726bb13375382d9e700034) | tcp_input.c (218cbbea9a4ff5953d6c1b87438a876388b5a181) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1559 unchanged lines hidden (view full) --- 1568 */ 1569 if ((so->so_state & SS_NOFDREF) && 1570 tp->t_state > TCPS_CLOSE_WAIT && tlen) { 1571 char *s; 1572 1573 KASSERT(headlocked, ("%s: trimthenstep6: tcp_close.3: head " 1574 "not locked", __func__)); 1575 if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, NULL))) { | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1559 unchanged lines hidden (view full) --- 1568 */ 1569 if ((so->so_state & SS_NOFDREF) && 1570 tp->t_state > TCPS_CLOSE_WAIT && tlen) { 1571 char *s; 1572 1573 KASSERT(headlocked, ("%s: trimthenstep6: tcp_close.3: head " 1574 "not locked", __func__)); 1575 if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, NULL))) { |
1576#ifdef TCPDEBUG | |
1577 log(LOG_DEBUG, "%s; %s: %s: Received data after socket " 1578 "was closed, sending RST and removing tcpcb\n", 1579 s, __func__, tcpstates[tp->t_state]); | 1576 log(LOG_DEBUG, "%s; %s: %s: Received data after socket " 1577 "was closed, sending RST and removing tcpcb\n", 1578 s, __func__, tcpstates[tp->t_state]); |
1580#else 1581 log(LOG_DEBUG, "%s; %s: Received data after socket " 1582 "was closed, sending RST and removing tcpcb\n", 1583 s, __func__); 1584#endif | |
1585 free(s, M_TCPLOG); 1586 } 1587 tp = tcp_close(tp); 1588 tcpstat.tcps_rcvafterclose++; 1589 rstreason = BANDLIM_UNLIMITED; 1590 goto dropwithreset; 1591 } 1592 --- 1438 unchanged lines hidden --- | 1579 free(s, M_TCPLOG); 1580 } 1581 tp = tcp_close(tp); 1582 tcpstat.tcps_rcvafterclose++; 1583 rstreason = BANDLIM_UNLIMITED; 1584 goto dropwithreset; 1585 } 1586 --- 1438 unchanged lines hidden --- |