--- - branch: MAIN date: Wed Oct 19 01:34:37 UTC 2011 files: - new: '1.252' old: '1.251' path: src/sys/net/if.c pathrev: src/sys/net/if.c@1.252 type: modified - new: '1.152' old: '1.151' path: src/sys/net/if.h pathrev: src/sys/net/if.h@1.152 type: modified id: 20111019T013437Z.7214d7d95edc23fedb5a12f3cdde32455037ed20 log: | Start to untangle the ifnet ioctls mess. Add ifnet functions, if_mcast_op(), if_flags_set(), and if_addr_init() for adding/deleting multicast addresses, modifying the if_flags, and initializing local/remote addresses. Make ifpromisc() use if_flags_set(). Protocols and network drivers should use these instead of ifp->if_ioctl() calls. Subsequent commits will replace ifp->if_ioctl(SIOCADDMULTI| SIOCDELMULTI| SIOCSIFDSTADDR| SIOCINITIFADDR| SIOCSIFFLAGS) calls with calls to the new functions. Use a mutex(9) to synchronize ifp->if_ioctl() calls originating in userland. Also synchronize ifp->if_ioctl() calls with ifnet detachment and reclamation. module: src subject: 'CVS commit: src/sys/net' unixtime: '1318988077' user: dyoung