From 887fd0ba6422374c1529718cbd6810114e95e898 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 22 Jun 2009 19:01:34 -0700 Subject: [PATCH] Add some comments to description to netdev functions. A few of the netdev functions lacked descriptions, so this adds them. --- lib/netdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/netdev.c b/lib/netdev.c index 8c14dd30..3d93e37e 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -729,6 +729,7 @@ netdev_get_features(struct netdev *netdev, peer ? peer : &dummy[3]); } +/* Set the features advertised by 'netdev' to 'advertise'. */ int netdev_set_advertisements(struct netdev *netdev, uint32_t advertise) { @@ -1113,6 +1114,8 @@ get_stats_via_proc(const char *netdev_name, struct netdev_stats *stats) return ENODEV; } +/* Sets 'carrier' to true if carrier is active (link light is on) on + * 'netdev'. */ int netdev_get_carrier(const struct netdev *netdev, bool *carrier) { @@ -1169,6 +1172,7 @@ exit: return error; } +/* Retrieves current device stats for 'netdev'. */ int netdev_get_stats(const struct netdev *netdev, struct netdev_stats *stats) { -- 2.30.2