]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: update software version to match man page
authorDean Hamstead <dean@fragfest.com.au>
Wed, 17 Aug 2011 02:12:16 +0000 (12:12 +1000)
committerVincent Bernat <bernat@luffy.cx>
Wed, 17 Aug 2011 06:44:38 +0000 (08:44 +0200)
src/lldpd.c

index e51a6940b6346491b31f46f773055deca03da745..55deb500205aca9e8a4df53ea883656fbdcd7a7e 100644 (file)
@@ -930,9 +930,9 @@ lldpd_update_localchassis(struct lldpd *cfg)
                        fatal("failed to set full system description");
         } else {
                if (cfg->g_advertise_version) {
-                       if (asprintf(&LOCAL_CHASSIS(cfg)->c_descr, "%s %s %s %s",
+                       if (asprintf(&LOCAL_CHASSIS(cfg)->c_descr, "%s %s %s %s %s",
                                cfg->g_lsb_release?cfg->g_lsb_release:"",
-                               un.sysname, un.release, un.machine)
+                               un.sysname, un.release, un.version, un.machine)
                                 == -1)
                                fatal("failed to set full system description");
                } else {