| 98 | } |
| 99 | |
| 100 | void |
| 101 | ifmedia_removeall(struct ifmedia *ifm) |
| 102 | { |
| 103 | struct ifmedia_entry *entry; |
| 104 | |
| 105 | while ((entry = LIST_FIRST(&ifm->ifm_list)) != NULL) { |
| 106 | LIST_REMOVE(entry, ifm_list); |
| 107 | free(entry, M_IFADDR); |
| 108 | } |
| 109 | ifm->ifm_cur = NULL; |
| 110 | } |
| 111 | |
| 112 | /* |
| 113 | * Add a media configuration to the list of supported media |
no test coverage detected