From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6fda382687607f3b,start X-Google-Attributes: gidfee84,public From: peter_lacasse@bigfoot.com (Peter La Casse) Subject: ether_input() and domain_add() issues in TRU64 4.0E Date: 1999/09/17 Message-ID: <37e28781.366508200@giserve.genroco.com>#1/1 X-Deja-AN: 526426859 X-Trace: homer.alpha.net 937593843 205.254.195.202 (Fri, 17 Sep 1999 13:44:03 CDT) NNTP-Posting-Date: Fri, 17 Sep 1999 13:44:03 CDT Newsgroups: comp.unix.osf.osf1 X-Complaints-To: abuse@alpha.net Hello, I am implementing a dynamically loadable network layer protocol under TRU64 4.0E and I'm having some "lack of documentation" issues. So far my two best sources of information are the system header files (no source files, unfortunately) and Stevens' _TCP/IP Illustrated Volume 2_. I'm using domain_add() and domain_del() to dynamically load and unload my domain structure, which contains just one protosw structure for now. The system seems to load these and call their init functions properly, returning zero for both domain_add() and domain_del(), which I have deduced is good. My protocol has its own ethertype, and my problem concerns two aspects of this: 1. How do I make the system aware of my ethertype? Other ethertypes, such as ETHERTYPE_IP and ETHERTYPE_ARP appear to be hardcoded into the OS. 2. What are the incoming packet queue names under TRU64? According to Stevens, the ip input queue, for instance, is named ipintrq (of type struct ifqueue.) Under TRU64, it appears as if a different name is used. I'm not sure how my protocol's input queue should be created; is that my responsibility, or will domain_add do it? (Having source for domain_add or ether_input would be nice.) Regarding the second, in Stevens p. 105, ether_input simply ignores ethernet packets with an ethertype it is not aware of. However, it seems logical that if the domain_add function exists, there must be some way of dynamically associating an ethertype with a protocol. Does TRU64 actually do this? Any help you can give (or pointers to additional documentation that might help me) are greatly appreciated. Thanks, Peter La Casse