Subject: Re: Dynamic registry of ehternet frame types
To: Martin Husemann <martin@duskware.de>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 11/12/2003 11:09:21
Martin Husemann wrote:
> On Wed, Nov 12, 2003 at 09:47:31AM +0100, Jaromir Dolecek wrote:
> > 	default:
> > 		if (ether_me_harder && (*ether_me_harder)(etype, m))
> > 			break;
> 
> Managing a list of
> 
> struct ethertype_input_handler {
> 	SLIST_ENTRY(ethertype_input_handler) next;
> 	void (*func)(struct mbuf *m, u_int16 ethertype)
> 	u_int16 ethertype;
> };
> 
> is not that hard and it scales better.

Do it, then :) It might be desirable to make the associated
code in if_ethersubr.c #if defined(NPPPOE) for now, or
#if defined(LKM) || defined(NPPPOE).

Jaromir 
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-