Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ip.c
          +++ new/usr/src/uts/common/inet/ip/ip.c
↓ open down ↓ 6690 lines elided ↑ open up ↑
6691 6691                          mp->b_datap->db_struioflag |= STRUIO_EAGER;
6692 6692                          DB_CKSUMSTART(mp) = (intptr_t)sqp;
6693 6693                          syn_present = B_TRUE;
6694 6694                  }
6695 6695          }
6696 6696  
6697 6697          if (IPCL_IS_TCP(connp) && IPCL_IS_BOUND(connp) && !syn_present) {
6698 6698                  uint_t  flags = (unsigned int)tcph->th_flags[0] & 0xFF;
6699 6699                  BUMP_MIB(recv_ill->ill_ip_mib, ipIfStatsHCInDelivers);
6700 6700                  if ((flags & TH_RST) || (flags & TH_URG)) {
     6701 +                        DTRACE_TCP5(receive, mblk_t *, NULL, conn_t *, NULL,
     6702 +                            void_ip_t *, ipha, tcp_t *, NULL, tcph_t *, tcph);
6701 6703                          CONN_DEC_REF(connp);
6702 6704                          freemsg(first_mp);
6703 6705                          return;
6704 6706                  }
6705 6707                  if (flags & TH_ACK) {
6706 6708                          tcp_xmit_listeners_reset(first_mp, ip_hdr_len, zoneid,
6707 6709                              ipst->ips_netstack->netstack_tcp, connp);
6708 6710                          CONN_DEC_REF(connp);
6709 6711                          return;
6710 6712                  }
6711 6713  
     6714 +                DTRACE_TCP5(receive, mblk_t *, NULL, conn_t *, NULL,
     6715 +                    void_ip_t *, ipha, tcp_t *, NULL, tcph_t *, tcph);
6712 6716                  CONN_DEC_REF(connp);
6713 6717                  freemsg(first_mp);
6714 6718                  return;
6715 6719          }
6716 6720  
6717 6721          if (CONN_INBOUND_POLICY_PRESENT(connp, ipss) || secure) {
6718 6722                  first_mp = ipsec_check_inbound_policy(first_mp, connp, ipha,
6719 6723                      NULL, mctl_present);
6720 6724                  if (first_mp == NULL) {
6721 6725                          BUMP_MIB(recv_ill->ill_ip_mib, ipIfStatsInDiscards);