Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 97 16:13:27 PDT
From:      Craig Leres <leres@ee.lbl.gov>
To:        bugs@freebsd.org
Subject:   LBL ifdef in netinet/ip_mroute.c
Message-ID:  <199707142313.QAA17721@ell.ee.lbl.gov>

next in thread | raw e-mail | index | archive | help
Would it be possible for you folks to apply the appended patch to
netinet/ip_mroute.c? The oc_cksum() routine is an experimental checksum
that is only implemented on the sparc and everytime I build a "LBL"
kernel from a fresh copy of FreeBSD, I have to change it.

(It would probably also be ok if you just removed the ifdef...)

Thanks!

		Craig
------
*** ip_mroute.c.virgin	Mon Jul 14 16:07:19 1997
--- ip_mroute.c	Mon Jul 14 16:08:25 1997
***************
*** 1609,1615 ****
      HTONS(ip->ip_len);
      HTONS(ip->ip_off);
      ip->ip_sum = 0;
! #if defined(LBL) && !defined(ultrix)
      ip->ip_sum = ~oc_cksum((caddr_t)ip, ip->ip_hl << 2, 0);
  #else
      mb_copy->m_data += sizeof(multicast_encap_iphdr);
--- 1609,1615 ----
      HTONS(ip->ip_len);
      HTONS(ip->ip_off);
      ip->ip_sum = 0;
! #if defined(LBL) && defined(sun)
      ip->ip_sum = ~oc_cksum((caddr_t)ip, ip->ip_hl << 2, 0);
  #else
      mb_copy->m_data += sizeof(multicast_encap_iphdr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707142313.QAA17721>