tcpdump mailing list archives
Re: Modular arithmetic
From: "David Laight" <David.Laight () ACULAB COM>
Date: Mon, 10 Sep 2012 09:41:02 +0100
On Fri, Sep 07, 2012 at 07:49:10AM +0000, George Bakos wrote:Gents, Any fundamental reason why the following (, etc.) shouldn't be included in net/core/filter.c? case BPF_S_ALU_MOD_X: if (X == 0) return 0; A %= X; continue;Copying netdev. In principle no reason against it, but you may need to update the various BPF JITs too that Linux now has too.
What about the other OS - eg all the BSDs? I had a vague idea that BPF was supposed to be reasonable portable. David (dsl () netbsd org) _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Modular arithmetic George Bakos (Sep 05)
- Re: Modular arithmetic Guy Harris (Sep 05)
- Re: Modular arithmetic George Bakos (Sep 06)
- Re: Modular arithmetic Guy Harris (Sep 06)
- Message not available
- Message not available
- Message not available
- Re: [PATCH net-next] filter: add MOD operation George Bakos (Sep 08)
- Re: Modular arithmetic George Bakos (Sep 06)
- Re: Modular arithmetic Guy Harris (Sep 05)
- Message not available
- Message not available
- Re: Modular arithmetic David Laight (Sep 10)
- Message not available
- Re: Modular arithmetic David Laight (Sep 10)
- Re: Modular arithmetic Guy Harris (Sep 10)