cvs commit: src/sys/net if_ethersubr.c if_fddisubr.c if_iso88025subr.c

Ruslan Ermilov ru at FreeBSD.org
Sun Mar 14 00:37:48 PST 2004


On Sat, Mar 13, 2004 at 09:24:54PM -0800, Matthew N. Dodd wrote:
> mdodd       2004/03/13 21:24:54 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/net              if_ethersubr.c if_fddisubr.c 
>                          if_iso88025subr.c 
>   Log:
>   Handle AF_ARP in *_output()
>   
>   Obtained from:  NetBSD
>   
>   Revision  Changes    Path
>   1.162     +27 -0     src/sys/net/if_ethersubr.c
>   1.89      +27 -0     src/sys/net/if_fddisubr.c
>   1.60      +27 -0     src/sys/net/if_iso88025subr.c

: Index: src/sys/net/if_ethersubr.c
: diff -u src/sys/net/if_ethersubr.c:1.161 src/sys/net/if_ethersubr.c:1.162
: --- src/sys/net/if_ethersubr.c:1.161	Tue Mar  9 15:55:59 2004
: +++ src/sys/net/if_ethersubr.c	Sat Mar 13 21:24:53 2004
: @@ -168,6 +168,33 @@
:  			return (0);	/* if not yet resolved */
:  		type = htons(ETHERTYPE_IP);
:  		break;
: +	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?


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040314/7a0ca77e/attachment-0001.bin


More information about the cvs-src mailing list