Subject: Re: patch to align ip headers..
To: Darren Reed <darrenr@reed.wattle.id.au>
From: Matt Thomas <matt@3am-software.com>
List: tech-net
Date: 04/25/2000 19:05:18
>+       if (mtod(m, intptr_t) & 0x3) {
>+               intptr_t i = mtod(m, intptr_t) & 0x3;
>+               bcopy(m->m_data, m->m_data - i, m->m_len);

Since the arguments overlap, that should be ovbcopy.

>+               m->m_data -= i;
>+       }
>         ip = mtod(m, struct ip *);

-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message