cvs commit: src/sys/net if_ethersubr.c if_fddisubr.c
if_iso88025subr.c
Matthew N. Dodd
mdodd at FreeBSD.ORG
Sat Mar 20 13:33:49 PST 2004
On Sun, 14 Mar 2004, Ruslan Ermilov wrote:
> : + case AF_ARP:
> : + {
> : + struct arphdr *ah;
> : + ah = mtod(m, struct arphdr *);
> : + ah->ar_hrd = htons(ARPHRD_ETHER);
>
> Is it safe to not do m_pullup() here and there?
Yes. The only codepath that results in the AF_ARP case performs the mbuf
alloction with sufficient size.
I'll be committing this later today.
--
10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00
More information about the cvs-src
mailing list