Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2005 10:32:41 +0100
From:      Andre Oppermann <andre@freebsd.org>
To:        Jon <comepu@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: what means "accf" in soisconnected function? thanks!
Message-ID:  <438EC339.38FA8CE5@freebsd.org>
References:  <20051119120111.4BF2316A421@hub.freebsd.org> <001001c5f659$4e2fe0d0$ba00a8c0@wtfzhangj>

next in thread | previous in thread | raw e-mail | index | archive | help
Jon wrote:
> 
> I am reading 'soisconnected' function in 'Uipc_socket2.c' file.
> I find this lines. But I cannot find accf's mean. can you explain to me?thank you very much!

This is the accept filter stuff we have.  Take a look at setsockopt(2)
and accept_filter(9).

-- 
Andre


>   if ((so->so_options & SO_ACCEPTFILTER) == 0) {
>     ...
>   } else {
>    ACCEPT_UNLOCK();
>    SOCK_LOCK(so);
>    so->so_upcall =
>        head->so_accf->so_accept_filter->accf_callback;
>    so->so_upcallarg = head->so_accf->so_accept_filter_arg;
>    so->so_rcv.sb_flags |= SB_UPCALL;
>    so->so_options &= ~SO_ACCEPTFILTER;
>    SOCK_UNLOCK(so);
>    so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
>   }
> 
>   --------------------------------------------------------------------------------
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?438EC339.38FA8CE5>