From: | "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx> |
Date: | Sun, 11 Jan 2004 14:50:42 +0100 |
We can do a base adresse + unsigned int for an index in each node. ButI thought 256 would be enough as the firewall has a binary tree with 256 nodes each level.
unsigned char and unsigned short is not enough. Eg: in the worse case (no
optimization in the tree), you can have 14 nodes per rule (one per level).
So you can adress nodes for about 20 rules max in the hpf engine that is not
enough.
I must add architecture information (IA32, IA64, sparc etc...) on compiled
rule file header. Then, we avoid the case where someone compile rule file on
IA64 and push it on IA32 architecture (and avoid the reversed byte order
problem).
Can you tell me Simon if there is some defines on dragonfly kernel for
letting know the architecture (like __IA32__, __IA64__ , __SPARC__,
__SPARC64__ etc...) ?
cheers simon
-- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
Attachment:
PGP.sig
Description: This is a digitally signed message part