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

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

Diff for /src/sys/netinet6/ip6_input.c between version 1.193.2.6 and 1.202

version 1.193.2.6, 2018/11/26 01:52:51 version 1.202, 2018/05/14 17:34:26
Line 354  ip6_input(struct mbuf *m, struct ifnet *
Line 354  ip6_input(struct mbuf *m, struct ifnet *
                         return;                          return;
                 if (m == NULL)                  if (m == NULL)
                         return;                          return;
                 KASSERT(m->m_len >= sizeof(struct ip6_hdr));  
                 ip6 = mtod(m, struct ip6_hdr *);                  ip6 = mtod(m, struct ip6_hdr *);
                 srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst);                  srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst);
         }          }
Line 1050  ip6_unknown_opt(u_int8_t *optp, struct m
Line 1049  ip6_unknown_opt(u_int8_t *optp, struct m
         return (-1);          return (-1);
 }  }
   
   /*
    * Create the "control" list for this pcb.
    *
    * The routine will be called from upper layer handlers like tcp6_input().
    * Thus the routine assumes that the caller (tcp6_input) have already
    * called IP6_EXTHDR_CHECK() and all the extension headers are located in the
    * very first mbuf on the mbuf chain.
    * We may want to add some infinite loop prevention or sanity checks for safety.
    * (This applies only when you are using KAME mbuf chain restriction, i.e.
    * you are using IP6_EXTHDR_CHECK() not m_pulldown())
    */
 void  void
 ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp,  ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp,
         struct ip6_hdr *ip6, struct mbuf *m)          struct ip6_hdr *ip6, struct mbuf *m)
Line 1483  ip6_addaux(struct mbuf *m)
Line 1493  ip6_addaux(struct mbuf *m)
 {  {
         struct m_tag *mtag;          struct m_tag *mtag;
   
         mtag = m_tag_find(m, PACKET_TAG_INET6);          mtag = m_tag_find(m, PACKET_TAG_INET6, NULL);
         if (!mtag) {          if (!mtag) {
                 mtag = m_tag_get(PACKET_TAG_INET6, sizeof(struct ip6aux),                  mtag = m_tag_get(PACKET_TAG_INET6, sizeof(struct ip6aux),
                     M_NOWAIT);                      M_NOWAIT);
Line 1500  ip6_findaux(struct mbuf *m)
Line 1510  ip6_findaux(struct mbuf *m)
 {  {
         struct m_tag *mtag;          struct m_tag *mtag;
   
         mtag = m_tag_find(m, PACKET_TAG_INET6);          mtag = m_tag_find(m, PACKET_TAG_INET6, NULL);
         return mtag;          return mtag;
 }  }
   
Line 1509  ip6_delaux(struct mbuf *m)
Line 1519  ip6_delaux(struct mbuf *m)
 {  {
         struct m_tag *mtag;          struct m_tag *mtag;
   
         mtag = m_tag_find(m, PACKET_TAG_INET6);          mtag = m_tag_find(m, PACKET_TAG_INET6, NULL);
         if (mtag)          if (mtag)
                 m_tag_delete(m, mtag);                  m_tag_delete(m, mtag);
 }  }

Legend:
Removed from v.1.193.2.6  
changed lines
  Added in v.1.202

CVSweb <webmaster@jp.NetBSD.org>