[Asterisk-bsd] current error on 5.2.1 -p9

Chris Stenton asterisk-bsd@lists.digium.com
Mon, 19 Jul 2004 11:10:07 +0100


On Mon, 2004-07-19 at 10:25, Olle E. Johansson wrote:
> Chris Stenton wrote:
> 
> > On Mon, 2004-07-19 at 08:55, Olle E. Johansson wrote:
> > 
> >>Richard Neese wrote:
> >>
> >>
> >>>rtp.c: In function `rtp_socket':
> >>>rtp.c:770: error: `SO_NO_CHECK' undeclared (first use in this function)
> >>>rtp.c:770: error: (Each undeclared identifier is reported only once
> >>>rtp.c:770: error: for each function it appears in.)
> >>>gmake: *** [rtp.o] Error 1
> >>>mypbx#
> >>
> >>Added to the bug tracker.
> >>
> >>The CVS log message when adding this feature:
> >>    Add option to disable checksums on RTP UDP ports (bug #2068)
> >>
> >>BSD setsockopt doesn't have SO_NO_CHECK as far as I can tell. Anyone that
> >>knows how to disable UDP checksums on FreeBSD?
> >>
> > 
> > 
> > I believe you can do this system wide only via a sysctl
> > net.inet.udp.checksum call. This option should be silently ignored as is
> > the case in other FreeBSD apps. I am not sure why this is needed in
> > Linux. My understanding is that FreeBSD uses the ethernet card to
> > generate the crc if the hardware is available.
> Compile error is not "silently ignored" :-)

You know what I meant!

> Guess we have to disable that functionality under FreeBSD. Any other
> BSD that supports this? Does this apply to *all* *BSD?

I think so; SO_NO_CHECK seems to be Linux specific.

> 
> /O
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd