Changeset b2b1e46 in libbsdport


Ignore:
Timestamp:
Apr 23, 2009, 4:32:07 AM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
82a7c84
Parents:
1f018e4
Message:
  • added ifmedia_removeall().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/libbsdport/ifmedia.c

    r1f018e4 rb2b1e46  
    5151}
    5252
     53void
     54ifmedia_removeall(struct ifmedia *ifm)
     55{
     56struct ifmedia_entry *ifmen, *ifmep, *ifme;
     57                for ( ifmep = LIST_FIRST(&ifm->ifm_list); ifmep; ifmep = ifmen ) {
     58                        ifmen = LIST_NEXT(ifmep, ifm_list);
     59                        free(ifmep, M_DEVBUF);
     60                }
     61}
     62
    5363int
    5464ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm, u_long cmd)
Note: See TracChangeset for help on using the changeset viewer.