diff options
author | Thomas Graf <tgr@plip.localdomain> | 2008-10-15 10:25:26 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@plip.localdomain> | 2008-10-15 10:25:26 (GMT) |
commit | 5d92f9c03d85cefee5afe7f40d7ea69dfde4cf77 (patch) | |
tree | 90a3516b31a7fc3ba912b4fcd74d344b6f7124c0 /include | |
parent | 23ee46ef7115c2e311c36e43a833e6c3deada18a (diff) | |
download | libnl-5d92f9c03d85cefee5afe7f40d7ea69dfde4cf77.zip libnl-5d92f9c03d85cefee5afe7f40d7ea69dfde4cf77.tar.gz libnl-5d92f9c03d85cefee5afe7f40d7ea69dfde4cf77.tar.bz2 |
Use 16bit ints for classifier prio/protocol
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-types.h | 4 | ||||
-rw-r--r-- | include/netlink/route/classifier.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/netlink-types.h b/include/netlink-types.h index 238b131..cddace9 100644 --- a/include/netlink-types.h +++ b/include/netlink-types.h @@ -475,8 +475,8 @@ struct rtnl_class struct rtnl_cls { NL_TCA_GENERIC(c); - uint32_t c_prio; - uint32_t c_protocol; + uint16_t c_prio; + uint16_t c_protocol; struct rtnl_cls_ops *c_ops; }; diff --git a/include/netlink/route/classifier.h b/include/netlink/route/classifier.h index 0c0b9c5..01a26a9 100644 --- a/include/netlink/route/classifier.h +++ b/include/netlink/route/classifier.h @@ -44,11 +44,11 @@ extern void rtnl_cls_set_handle(struct rtnl_cls *, uint32_t); extern void rtnl_cls_set_parent(struct rtnl_cls *, uint32_t); extern void rtnl_cls_set_kind(struct rtnl_cls *, const char *); -extern void rtnl_cls_set_prio(struct rtnl_cls *, int); -extern int rtnl_cls_get_prio(struct rtnl_cls *); +extern void rtnl_cls_set_prio(struct rtnl_cls *, uint16_t); +extern uint16_t rtnl_cls_get_prio(struct rtnl_cls *); -extern void rtnl_cls_set_protocol(struct rtnl_cls *, int); -extern int rtnl_cls_get_protocol(struct rtnl_cls *); +extern void rtnl_cls_set_protocol(struct rtnl_cls *, uint16_t); +extern uint16_t rtnl_cls_get_protocol(struct rtnl_cls *); #ifdef __cplusplus } |