aarp.c (121438) | aarp.c (122320) |
---|---|
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 121438 2003-10-23 17:48:53Z imp $ | 5 * $FreeBSD: head/sys/netatalk/aarp.c 122320 2003-11-08 22:28:40Z sam $ |
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> --- 293 unchanged lines hidden (view full) --- 307 struct ether_header *eh; 308 struct llc *llc; 309 struct sockaddr_at sat; 310 struct sockaddr sa; 311 struct at_addr spa, tpa, ma; 312 int op; 313 u_short net; 314 | 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> --- 293 unchanged lines hidden (view full) --- 307 struct ether_header *eh; 308 struct llc *llc; 309 struct sockaddr_at sat; 310 struct sockaddr sa; 311 struct at_addr spa, tpa, ma; 312 int op; 313 u_short net; 314 |
315 GIANT_REQUIRED; 316 |
|
315 ea = mtod( m, struct ether_aarp *); 316 317 /* Check to see if from my hardware address */ 318 if ( !bcmp(( caddr_t )ea->aarp_sha, ( caddr_t )ac->ac_enaddr, 319 sizeof( ac->ac_enaddr ))) { 320 m_freem( m ); 321 return; 322 } --- 311 unchanged lines hidden --- | 317 ea = mtod( m, struct ether_aarp *); 318 319 /* Check to see if from my hardware address */ 320 if ( !bcmp(( caddr_t )ea->aarp_sha, ( caddr_t )ac->ac_enaddr, 321 sizeof( ac->ac_enaddr ))) { 322 m_freem( m ); 323 return; 324 } --- 311 unchanged lines hidden --- |