[BACK]Return to if_tun.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/if_tun.c between version 1.144 and 1.145

version 1.144, 2018/06/26 06:48:02 version 1.145, 2018/08/03 09:54:40
Line 1058  filt_tunread(struct knote *kn, long hint
Line 1058  filt_tunread(struct knote *kn, long hint
         struct ifnet *ifp = &tp->tun_if;          struct ifnet *ifp = &tp->tun_if;
         struct mbuf *m;          struct mbuf *m;
   
         mutex_enter(&tp->tun_lock);          KASSERT(mutex_owned(&tp->tun_lock));
   
         IF_POLL(&ifp->if_snd, m);          IF_POLL(&ifp->if_snd, m);
         if (m == NULL) {          if (m == NULL)
                 mutex_exit(&tp->tun_lock);  
                 return 0;                  return 0;
         }  
   
         for (kn->kn_data = 0; m != NULL; m = m->m_next)          for (kn->kn_data = 0; m != NULL; m = m->m_next)
                 kn->kn_data += m->m_len;                  kn->kn_data += m->m_len;
   
         mutex_exit(&tp->tun_lock);  
   
         return 1;          return 1;
 }  }
   

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145

CVSweb <webmaster@jp.NetBSD.org>