diff options
author | Flavio Leitner <fbl@redhat.com> | 2013-01-07 20:36:12 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-01-11 12:44:47 (GMT) |
commit | 3540e44b158f0f45fc2364d99e70433fba176b21 (patch) | |
tree | e240f23be2283d001b2657f8375d133d029c09a9 /include/linux | |
parent | f12379543415e10e3d546b6e1ba70e88ff431710 (diff) | |
download | libnl-3540e44b158f0f45fc2364d99e70433fba176b21.zip libnl-3540e44b158f0f45fc2364d99e70433fba176b21.tar.gz libnl-3540e44b158f0f45fc2364d99e70433fba176b21.tar.bz2 |
link: add carrier support
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/if.h | 6 | ||||
-rw-r--r-- | include/linux/if_link.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/if.h b/include/linux/if.h index 32f910f..238cf43 100644 --- a/include/linux/if.h +++ b/include/linux/if.h @@ -117,6 +117,12 @@ enum { IF_LINK_MODE_DORMANT, /* limit upward transition to dormant */ }; +/* carrier state */ +enum { + IF_CARRIER_DOWN, + IF_CARRIER_UP +}; + /* * Device mapping structure. I'd just gone off and designed a * beautiful scheme using only loadable modules with arguments diff --git a/include/linux/if_link.h b/include/linux/if_link.h index c0a1dd9..a753d11 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -142,6 +142,7 @@ enum { #define IFLA_PROMISCUITY IFLA_PROMISCUITY IFLA_NUM_TX_QUEUES, IFLA_NUM_RX_QUEUES, + IFLA_CARRIER, __IFLA_MAX }; |