FreeBSD/sys/compat/linux/linux_socket.c
/* Return 0 if IP_HDRINCL is set for the given socket. */
Return 0 if IP_HDRINCL is set for the given socket.
Return 0 if IP_HDRINCL is set for the given socket .
static int
linux_check_hdrincl(struct thread *td, int s)
{
	int error, optval;
	socklen_t size_val;
	size_val = sizeof(optval);
	error = kern_getsockopt(td, s, IPPROTO_IP, IP_HDRINCL,
	    &optval, UIO_SYSSPACE, &size_val);
	if (error)
		return (error);
	return (optval == 0);
}
static int linux_check_hdrincl ( struct thread * td , int s ) { int error , optval ; socklen_t size_val ; size_val = sizeof ( optval ) ; error = kern_getsockopt ( td , s , IPPROTO_IP , IP_HDRINCL , & optval , UIO_SYSSPACE , & size_val ) ; if ( error ) return ( error ) ; return ( optval == 0 ) ; }
Return 0 if IP_HDRINCL is set for the given socket.
Return 0 if IP_HDRINCL is set for the given socket .