aarp.c (32929) | aarp.c (33181) |
---|---|
1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 */ 5 6#include "opt_atalk.h" 7 8#include <sys/param.h> --- 16 unchanged lines hidden (view full) --- 25#include <netatalk/at_extern.h> 26 27static void aarptfree( struct aarptab *aat); 28static void at_aarpinput( struct arpcom *ac, struct mbuf *m); 29 30#define AARPTAB_BSIZ 9 31#define AARPTAB_NB 19 32#define AARPTAB_SIZE (AARPTAB_BSIZ * AARPTAB_NB) | 1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 */ 5 6#include "opt_atalk.h" 7 8#include <sys/param.h> --- 16 unchanged lines hidden (view full) --- 25#include <netatalk/at_extern.h> 26 27static void aarptfree( struct aarptab *aat); 28static void at_aarpinput( struct arpcom *ac, struct mbuf *m); 29 30#define AARPTAB_BSIZ 9 31#define AARPTAB_NB 19 32#define AARPTAB_SIZE (AARPTAB_BSIZ * AARPTAB_NB) |
33struct aarptab aarptab[AARPTAB_SIZE]; 34int aarptab_size = AARPTAB_SIZE; | 33static struct aarptab aarptab[AARPTAB_SIZE]; 34static int aarptab_size = AARPTAB_SIZE; |
35 36#define AARPTAB_HASH(a) \ 37 ((((a).s_net << 8 ) + (a).s_node ) % AARPTAB_NB ) 38 39#define AARPTAB_LOOK(aat,addr) { \ 40 int n; \ 41 aat = &aarptab[ AARPTAB_HASH(addr) * AARPTAB_BSIZ ]; \ 42 for ( n = 0; n < AARPTAB_BSIZ; n++, aat++ ) \ --- 7 unchanged lines hidden (view full) --- 50#define AARPT_AGE (60 * 1) 51#define AARPT_KILLC 20 52#define AARPT_KILLI 3 53 54# if !defined( __FreeBSD__ ) 55extern u_char etherbroadcastaddr[6]; 56# endif __FreeBSD__ 57 | 35 36#define AARPTAB_HASH(a) \ 37 ((((a).s_net << 8 ) + (a).s_node ) % AARPTAB_NB ) 38 39#define AARPTAB_LOOK(aat,addr) { \ 40 int n; \ 41 aat = &aarptab[ AARPTAB_HASH(addr) * AARPTAB_BSIZ ]; \ 42 for ( n = 0; n < AARPTAB_BSIZ; n++, aat++ ) \ --- 7 unchanged lines hidden (view full) --- 50#define AARPT_AGE (60 * 1) 51#define AARPT_KILLC 20 52#define AARPT_KILLI 3 53 54# if !defined( __FreeBSD__ ) 55extern u_char etherbroadcastaddr[6]; 56# endif __FreeBSD__ 57 |
58u_char atmulticastaddr[ 6 ] = { | 58static u_char atmulticastaddr[ 6 ] = { |
59 0x09, 0x00, 0x07, 0xff, 0xff, 0xff, 60}; 61 62u_char at_org_code[ 3 ] = { 63 0x08, 0x00, 0x07, 64}; 65u_char aarp_org_code[ 3 ] = { 66 0x00, 0x00, 0x00, --- 551 unchanged lines hidden --- | 59 0x09, 0x00, 0x07, 0xff, 0xff, 0xff, 60}; 61 62u_char at_org_code[ 3 ] = { 63 0x08, 0x00, 0x07, 64}; 65u_char aarp_org_code[ 3 ] = { 66 0x00, 0x00, 0x00, --- 551 unchanged lines hidden --- |