[Asterisk-bsd] current error on 5.2.1 -p9

Olle E. Johansson asterisk-bsd@lists.digium.com
Mon, 19 Jul 2004 11:25:09 +0200


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" :-)
Guess we have to disable that functionality under FreeBSD. Any other
BSD that supports this? Does this apply to *all* *BSD?

/O