/[dynamips]/upstream/dynamips-0.2.6-RC5/dev_am79c971.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.6-RC5/dev_am79c971.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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);

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26