On Fri, 7 Jun 2002, Archie Cobbs wrote:
>    - Rejigger the oltr driver to pass its "secret" information using
>      an auxillary mbuf instead of m->m_pkthdr.header.
>
> Any comments/objections?

Please look at the 'kluge' that NetBSD uses.

netinet/if_arp.c:
                        trh = (struct token_header *)M_TRHSTART(m);

net/if_token.h:
/*
 * This is a kludge to get at the token ring mac header and the source route
 * information after m_adj() has been used on the mbuf.
 * Note that m is always an mbuf with a packet header.
 */
#define M_TRHSTART(m) \
        (ALIGN(((m)->m_flags & M_EXT ? (m)->m_ext.ext_buf : &(m)->m_pktdat[0]) \
            + sizeof (struct token_header)) - sizeof(struct token_header))

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |


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

Reply via email to