ipprecedence ?

Yar Tikhiy yar at comp.chem.msu.su
Sat Mar 4 13:09:19 PST 2006


On Fri, Mar 03, 2006 at 10:10:40AM +0200, S.I wrote:
> Thanks for your reply i know this info from google.
> The situation is I have a router with many vlans and i want to change
> the ipprecedence for some networks as I don't want to check hosts in static table because
> this check is too slowly for ingoing ( 40000p/s ):) for other routers behind him.This example with setsockopt(2) may be is useing for local packets?I know some  kind high level switches or routers can doing that but are more expensive :).

Indeed, setsockopt(2) can only control the IP precedence of packets
generated by sockets opened locally, on this host.

Correct me if I'm wrong, but the functionality offered, e.g., by cisco
routers:

	route-map XX
	match <access-list>
	set ip precedence XX

isn't in FreeBSD.  It can be implemented as a hack to ipfw or pf, but
there is no general framework ready for use.

When making the hack, don't forget to recompute the IP checksum after
modifying the IP precedence field.

> Regards
> 	S.I
> 
> On Wed, 1 Mar 2006 10:53:32 +0200
> "S.I" <piston at otel.net> wrote:
> 
> > How Can I set ipprecedence flag on FreeBSD?
> > _______________________________________________
> > freebsd-net at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

-- 
Yar


More information about the freebsd-net mailing list