git: ifmedia: Add two helper functions for ifmedia_add and ifmedia_set
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Wed Dec 2 18:53:52 PST 2015
commit 38c053eecdc3700db87b0324f84da2a06f2385c8
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Thu Dec 3 10:48:03 2015 +0800
ifmedia: Add two helper functions for ifmedia_add and ifmedia_set
- ifmedia_add_nodup() will not add duplicated media into ifmedia
- ifmedia_tryset() will fail, if the target media does not exist
Summary of changes:
sys/net/if_media.c | 27 +++++++++++++++++++++++++--
sys/net/if_media.h | 2 ++
2 files changed, 27 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38c053eecdc3700db87b0324f84da2a06f2385c8
--
DragonFly BSD source repository
More information about the Commits
mailing list