summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-02 03:28:05 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-03 05:27:12 +0100
commite1ac697441f1147a69aad66207385fdd716a05e7 (patch)
tree83d0a5591066e37b7373f663964f79c6a8597e89 /lib/if.h
parenta3e5daee7205e8bffb44d914a74d38fe8ad0c986 (diff)
downloadquagga-e1ac697441f1147a69aad66207385fdd716a05e7.tar.bz2
quagga-e1ac697441f1147a69aad66207385fdd716a05e7.tar.xz
netlink: process scope value, save it
add struct connected "scope" field, fill it from kernel data and display it in "show interface" address list.
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/if.h b/lib/if.h
index c99ab81b..28faddf3 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -172,6 +172,9 @@ struct connected
/* Label for Linux 2.2.X and upper. */
char *label;
+
+ /* scope value, Linux only */
+ unsigned scope;
};
/* Does the destination field contain a peer address? */