-
enum data types in kernel
The following file,
/usr/src/linux-2.4.27/include/linux/pkt_cls.h makes use of enumerated data types. But it does not give the data types a name. eg. It is a header file that contains constants ofr creating a filter (part of linux traffic control)
enum
{
TCA_FW_UNSPEC,
TCA_FW_CLASSID,
TCA_FW_POLICE,
__TCA_FW_MAX
};
enum
{
TCA_TCINDEX_UNSPEC,
TCA_TCINDEX_HASH,
TCA_TCINDEX_MASK,
TCA_TCINDEX_SHIFT,
TCA_TCINDEX_FALL_THROUGH,
TCA_TCINDEX_CLASSID,
TCA_TCINDEX_POLICE,
__TCA_TCINDEX_MAX
};
Why doesnt it give the enumerated data type a name? and how can you access the enumerated constants?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|