Proposal for changes to network device drivers and network stack (RFC)

Anuranjan Shukla anshukla at juniper.net
Fri Sep 21 08:09:09 UTC 2012


On 9/7/12 8:48 AM, "Julian Elischer" <julian at freebsd.org> wrote:
>>>> struct socket {
>>>>
>>>> 	int so_fibnum;		/* routing domain for this socket */
>>>> 	uint32_t so_user_cookie;
>>>> +	u_int   so_oqueue;     /* manage send prioritizing based on
>>>> application
>>>> needs */
>>>> +	u_short so_lrid;     /* logical routing */
>>>> };
>>>>
>>>
>We have the second one with the SETFIB socket option, which allows
>a socket to select the routing instance (fib) to use.
>
>it's in the diff, 3 lines up.
Thanks Julian. I had wondered if our usage of so_lrid was different enough
to justify another field, primarily because I wasn't sure about potential
clash with setfib() for the process (since Junos doesn't use it). Having
looked a bit more into setfib() after your comment, it looks ok for Junos
to use so_fibnum. I'll remove so_lrid from our diff.



More information about the freebsd-net mailing list