[sr-dev] RAW socket support for Darwin (OSX)

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 2 12:58:15 CET 2012


Hello,

On 2/2/12 12:41 PM, Raphael Coeffic wrote:
> Hi!
>
> I'm currently having some issues trying to get raw socket support 
> working on OSX. It appears that raw_udp4_send() in raw_sock.c does not 
> compile because OSX support neither IP_PKTINFO nor IP_SENDSRCADDR. 
> However, it seems that raw_udp4_send is not used anywhere, and 
> everything now works over raw_iphdr_udp4_send(), for which only 
> IP_HDRINCL is needed, which is well supported on OSX.
>
> Is that correct that rwa_udp4_send is not used anymore? Could I just 
> remove it /comment it out?
perhaps you can enclose it in ifndef __OS_darwin ?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-dev mailing list