Subject: Re: rip_ctloutput() and IP_HDRINCL
To: NetBSD Kernel <tech-kern@NetBSD.org>
From: Markus Mayer <mmayer@redback.com>
List: tech-kern
Date: 11/27/2007 12:15:42
The "work around" code snippet should of course look like this, not like
previously posted:
case IP_HDRINCL:
if (*m == 0 || (*m)->m_len < sizeof (int))
error = EINVAL;
else {
if (m->m_len == sizeof(int) &&
*mtod(*m, int *))
inp->inp_flags |= INP_HDRINCL;
else if (m->m_len == sizeof(long) &&
*mtod(*m, long *))
inp->inp_flags |= INP_HDRINCL;
else
inp->inp_flags &= ~INP_HDRINCL;
}
Regards,
-Markus
--
Markus Mayer
Redback Networks
An Ericsson Company