On Sat, 12 Oct 2002, Luigi Rizzo wrote:

LR>On Sat, Oct 12, 2002 at 08:07:47PM -0600, M. Warner Losh wrote:
LR>...
LR>> :     reveals the use of an explicit constant (6) in net/if_arp.h and
LR>> :     netinet/if_ether.c; there is more of the same in net/bridge.c
LR>> :     (my fault), net/if_atmsubr.c, netinet/if_ether.c, netncp/ncp_subr.c
LR>>
LR>> atmsubr?  Doesn't ATM have its own constants?
LR>
LR>eh, that's the problem with explicit constants, you can never tell
LR>whether "6" is english, german or italian... in any case the
LR>relevant piece of code is:
LR>
LR>     net/if_atmsubr.c:                       if (bcmp(alc, ATMLLC_HDR, 6)) {
LR>
LR>I have no idea if it has any relation with ethernet header sizes.

No, this is the length of an LLC/SNAP header minus the type field.

harti
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              [EMAIL PROTECTED], [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to