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

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

Diff for /src/sys/netinet/raw_ip.c between version 1.173 and 1.174

version 1.173, 2018/04/12 06:49:39 version 1.174, 2018/04/12 07:28:10
Line 199  rip_input(struct mbuf *m, ...)
Line 199  rip_input(struct mbuf *m, ...)
                 if (!in_nullhost(inp->inp_faddr) &&                  if (!in_nullhost(inp->inp_faddr) &&
                     !in_hosteq(inp->inp_faddr, ip->ip_src))                      !in_hosteq(inp->inp_faddr, ip->ip_src))
                         continue;                          continue;
                 if (last == NULL)  
                   if (last == NULL) {
                         ;                          ;
                   }
 #if defined(IPSEC)  #if defined(IPSEC)
                 else if (ipsec_used && ipsec_in_reject(m, last)) {                  else if (ipsec_used && ipsec_in_reject(m, last)) {
                         /* do not inject data to pcb */                          /* do not inject data into pcb */
                 }                  }
 #endif  #endif
                 else if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {                  else if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {
Line 211  rip_input(struct mbuf *m, ...)
Line 213  rip_input(struct mbuf *m, ...)
                             n);                              n);
                         opts = NULL;                          opts = NULL;
                 }                  }
   
                 last = inp;                  last = inp;
         }          }
   
Line 218  rip_input(struct mbuf *m, ...)
Line 221  rip_input(struct mbuf *m, ...)
         if (ipsec_used && last != NULL && ipsec_in_reject(m, last)) {          if (ipsec_used && last != NULL && ipsec_in_reject(m, last)) {
                 m_freem(m);                  m_freem(m);
                 IP_STATDEC(IP_STAT_DELIVERED);                  IP_STATDEC(IP_STAT_DELIVERED);
                 /* do not inject data to pcb */                  /* do not inject data into pcb */
         } else          } else
 #endif  #endif
         if (last != NULL) {          if (last != NULL) {

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174

CVSweb <webmaster@jp.NetBSD.org>