diff options
| author | Artem Kachitchkine <Artem.Kachitchkin@Sun.COM> | 2008-12-26 16:52:57 -0800 |
|---|---|---|
| committer | Artem Kachitchkine <Artem.Kachitchkin@Sun.COM> | 2008-12-26 16:52:57 -0800 |
| commit | 62ee1d25bffb3d6d74798efe1199f7e86a29a14e (patch) | |
| tree | f49f1a15b5832247208e7b448efb94910c0e0951 /usr/src/cmd/dladm | |
| parent | 5c066ec28ea93f3a7c93082611a61747f255290a (diff) | |
| download | illumos-joyent-62ee1d25bffb3d6d74798efe1199f7e86a29a14e.tar.gz | |
6688428 dladm init-linkprop ignores private properties
Diffstat (limited to 'usr/src/cmd/dladm')
| -rw-r--r-- | usr/src/cmd/dladm/dladm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/cmd/dladm/dladm.c b/usr/src/cmd/dladm/dladm.c index c229ae0824..9608382f57 100644 --- a/usr/src/cmd/dladm/dladm.c +++ b/usr/src/cmd/dladm/dladm.c @@ -5570,6 +5570,14 @@ show_linkprop(dladm_handle_t dh, datalink_id_t linkid, const char *propname, if (!statep->ls_parseable) print_header(&statep->ls_print); } + /* + * This will need to be fixed when kernel interfaces are added + * to enable walking of all known private properties. For now, + * we are limited to walking persistent private properties only. + */ + if ((propname[0] == '_') && !statep->ls_persist && + (statep->ls_proplist == NULL)) + return (DLADM_WALK_CONTINUE); if (!statep->ls_parseable && !linkprop_is_supported(linkid, propname, statep)) return (DLADM_WALK_CONTINUE); |
