Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 1998 15:21:21 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        Eivind Eklund <eivind@yes.no>
Cc:        Brian Somers <brian@awfulhak.org>, Kris Kennaway <kkennawa@physics.adelaide.edu.au>, current@FreeBSD.ORG
Subject:   Re: Improper sharing of modem bandwidth 
Message-ID:  <98Oct8.152124pdt.177476@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Thu, 08 Oct 98 12:14:41 PDT." <19981008211441.00286@follo.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <19981008211441.00286@follo.net> Eivind wrote:
>#2 is probably the best (from the view of which possibilities it
>gives), but I also suspect it is what would give most work (unless bpf
>already can be used this way; then it would just be a question of
>making PPP use it.)

[Jumping straight in where I know none of the context...]

	i = bpf_filter(program, (u_char *)m, ip->ip_len, 0)

is all you need to do to run BPF program "program" on the packet in
mbuf m.

The BPF program can return the packet's priority (i.e. by looking at
TCP ports or IP TOS or whatever) and then you could order the packets
in the queue by their priority.

  Bill

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Oct8.152124pdt.177476>