Parent Directory | Revision Log | Patch
upstream/dynamips-0.2.6-RC2/dev_am79c971.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC | upstream/dynamips-0.2.6-RC3/dev_am79c971.c revision 4 by dpavlin, Sat Oct 6 16:06:49 2007 UTC | |
---|---|---|
# | Line 202 static inline int am79c971_handle_mac_ad | Line 202 static inline int am79c971_handle_mac_ad |
202 | { | { |
203 | n_eth_hdr_t *hdr = (n_eth_hdr_t *)pkt; | n_eth_hdr_t *hdr = (n_eth_hdr_t *)pkt; |
204 | ||
/* Ignore traffic sent by us */ | ||
if (!memcmp(&d->mac_addr,&hdr->saddr,N_ETH_ALEN)) | ||
return(FALSE); | ||
205 | /* Accept systematically frames if we are running is promiscuous mode */ | /* Accept systematically frames if we are running is promiscuous mode */ |
206 | if (d->csr[15] & AM79C971_CSR15_PROM) | if (d->csr[15] & AM79C971_CSR15_PROM) |
207 | return(TRUE); | return(TRUE); |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |