Mapping from rtm_flags back to MIB IANAipRouteProtocol value

2012-07-24 Thread Philip Prindeville
Ok, dumb question... How do I map a routing entries rtm_flags back to a IANAipRouteProtocol value? ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@fr

Re: IP_RECVTOS

2012-06-07 Thread Philip Prindeville
It might be nice to add a semantic that says, "when accepting connections, match their TOS"... possibly adding ranges of permitted TOS values. On 6/6/12 4:18 PM, Adrian Chadd wrote: > *nod* sure, I just want to be sure that it's clearly documented what > the option does. > > If it just does UDP

Re: IP_RECVTOS

2012-06-06 Thread Philip Prindeville
On 6/6/12 11:54 AM, Michael Tuexen wrote: > On Jun 6, 2012, at 7:17 PM, Adrian Chadd wrote: > >> Hi, >> >> For TCP, I've seen the network layer change things (eg setting bits on >> incoming traffic to mark which interface it came in on), so you can't >> guarantee the outbound ToS == inbound ToS. >

BSD and Darwin routing API questions

2012-06-03 Thread Philip Prindeville
Hi. I'm working on a portable (multiplatform) C library for manipulating routing tables. It will eventually be wrapperized for the C++ Poco toolkit, but the raw C API should be usable directly too. I'm trying to support BSD/MacOSX, Linux, and Win32. My experience with BSD routing tables was cu