aarp.c (111119) | aarp.c (111888) |
---|---|
1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * | 1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * |
5 * $FreeBSD: head/sys/netatalk/aarp.c 111119 2003-02-19 05:47:46Z imp $ | 5 * $FreeBSD: head/sys/netatalk/aarp.c 111888 2003-03-04 23:19:55Z jlemon $ |
6 */ 7 8#include "opt_atalk.h" 9#include "opt_mac.h" 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/mac.h> --- 239 unchanged lines hidden (view full) --- 253 } 254 aat->aat_hold = m; 255 aarpwhohas( ac, destsat ); 256 splx( s ); 257 return( 0 ); 258} 259 260void | 6 */ 7 8#include "opt_atalk.h" 9#include "opt_mac.h" 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/mac.h> --- 239 unchanged lines hidden (view full) --- 253 } 254 aat->aat_hold = m; 255 aarpwhohas( ac, destsat ); 256 splx( s ); 257 return( 0 ); 258} 259 260void |
261aarpinput( ac, m ) 262 struct arpcom *ac; | 261aarpintr( m ) |
263 struct mbuf *m; 264{ 265 struct arphdr *ar; | 262 struct mbuf *m; 263{ 264 struct arphdr *ar; |
265 struct arpcom *ac; |
|
266 | 266 |
267 ac = (struct arpcom *)m->m_pkthdr.rcvif; |
|
267 if ( ac->ac_if.if_flags & IFF_NOARP ) 268 goto out; 269 270 if ( m->m_len < sizeof( struct arphdr )) { 271 goto out; 272 } 273 274 ar = mtod( m, struct arphdr *); --- 352 unchanged lines hidden --- | 268 if ( ac->ac_if.if_flags & IFF_NOARP ) 269 goto out; 270 271 if ( m->m_len < sizeof( struct arphdr )) { 272 goto out; 273 } 274 275 ar = mtod( m, struct arphdr *); --- 352 unchanged lines hidden --- |