[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.2 and 1.5

version 1.2, 1993/03/21 18:04:42 version 1.5, 1993/05/22 11:42:37
Line 30 
Line 30 
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.   * SUCH DAMAGE.
  *   *
  *      @(#)raw_ip.c    7.8 (Berkeley) 7/25/90   *      from: @(#)raw_ip.c      7.8 (Berkeley) 7/25/90
  *   *      $Id$
  * PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE  
  * --------------------         -----   ----------------------  
  * CURRENT PATCH LEVEL:         1       00020  
  * --------------------         -----   ----------------------  
  *  
  * 03 Nov 92    Julian Elischer         Fixed memory leak that caused ping  
  *                                      and traceroute to cause panic  
  */   */
   
 #include "param.h"  #include "param.h"
Line 103  rip_output(m, so)
Line 96  rip_output(m, so)
          * If the user handed us a complete IP packet, use it.           * If the user handed us a complete IP packet, use it.
          * Otherwise, allocate an mbuf for a header and fill it in.           * Otherwise, allocate an mbuf for a header and fill it in.
          */           */
         if (rp->rinp_flags & RINPF_HDRINCL)          if (rp->rinp_flags & RINPF_HDRINCL) {
                 ip = mtod(m, struct ip *);                  ip = mtod(m, struct ip *);
         else {                  if (ip->ip_len > m->m_pkthdr.len)
                           return EMSGSIZE;
                   ip->ip_len = m->m_pkthdr.len;
           } else {
                 M_PREPEND(m, sizeof(struct ip), M_WAIT);                  M_PREPEND(m, sizeof(struct ip), M_WAIT);
                 ip = mtod(m, struct ip *);                  ip = mtod(m, struct ip *);
                 ip->ip_tos = 0;                  ip->ip_tos = 0;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>