Changeset 4592658 in rtems for c/src/lib/libbsp/arm/shared/lpc


Ignore:
Timestamp:
Dec 18, 2012, 8:24:56 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
7b5513f0
Parents:
3f58ac7
git-author:
Sebastian Huber <sebastian.huber@…> (12/18/12 08:24:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/18/12 10:22:19)
Message:

bsps/arm: Move promiscuous mode setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c

    r3f58ac7 r4592658  
    13601360        | (uint32_t) e->arpcom.ac_enaddr [0];
    13611361
    1362       lpc_eth_enable_promiscous_mode((ifp->if_flags & IFF_PROMISC) != 0);
    1363 
    13641362      /* Enable receiver */
    13651363      lpc_eth->mac1 = 0x03;
     
    15341532    case SIOCSIFFLAGS:
    15351533      eno = lpc_eth_up_or_down(e, (ifp->if_flags & IFF_UP) != 0);
     1534      if (eno == 0 && (ifp->if_flags & IFF_UP) != 0) {
     1535        lpc_eth_enable_promiscous_mode((ifp->if_flags & IFF_PROMISC) != 0);
     1536      }
    15361537      break;
    15371538    case SIOCADDMULTI:
Note: See TracChangeset for help on using the changeset viewer.