Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_CONTROL_NETLINK_ATTRIBUTE_H_ |
| 6 | #define SHILL_CONTROL_NETLINK_ATTRIBUTE_H_ |
| 7 | |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 8 | #include <base/basictypes.h> |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 9 | |
| 10 | #include "shill/netlink_attribute.h" |
| 11 | |
| 12 | struct nlattr; |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | // Control. |
| 17 | |
| 18 | class ControlAttributeFamilyId : public NetlinkU16Attribute { |
| 19 | public: |
| 20 | static const int kName; |
| 21 | static const char kNameString[]; |
| 22 | ControlAttributeFamilyId() : NetlinkU16Attribute(kName, kNameString) {} |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 23 | |
| 24 | private: |
| 25 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeFamilyId); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | class ControlAttributeFamilyName : public NetlinkStringAttribute { |
| 29 | public: |
| 30 | static const int kName; |
| 31 | static const char kNameString[]; |
| 32 | ControlAttributeFamilyName() : NetlinkStringAttribute(kName, kNameString) {} |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 33 | |
| 34 | private: |
| 35 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeFamilyName); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | class ControlAttributeVersion : public NetlinkU32Attribute { |
| 39 | public: |
| 40 | static const int kName; |
| 41 | static const char kNameString[]; |
| 42 | ControlAttributeVersion() : NetlinkU32Attribute(kName, kNameString) {} |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 43 | |
| 44 | private: |
| 45 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeVersion); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | class ControlAttributeHdrSize : public NetlinkU32Attribute { |
| 49 | public: |
| 50 | static const int kName; |
| 51 | static const char kNameString[]; |
| 52 | ControlAttributeHdrSize() : NetlinkU32Attribute(kName, kNameString) {} |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 53 | |
| 54 | private: |
| 55 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeHdrSize); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | class ControlAttributeMaxAttr : public NetlinkU32Attribute { |
| 59 | public: |
| 60 | static const int kName; |
| 61 | static const char kNameString[]; |
| 62 | ControlAttributeMaxAttr() : NetlinkU32Attribute(kName, kNameString) {} |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 63 | |
| 64 | private: |
| 65 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeMaxAttr); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | class ControlAttributeAttrOps : public NetlinkNestedAttribute { |
| 69 | public: |
| 70 | static const int kName; |
| 71 | static const char kNameString[]; |
| 72 | ControlAttributeAttrOps(); |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 73 | |
| 74 | private: |
| 75 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeAttrOps); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | class ControlAttributeMcastGroups : public NetlinkNestedAttribute { |
| 79 | public: |
| 80 | static const int kName; |
| 81 | static const char kNameString[]; |
| 82 | ControlAttributeMcastGroups(); |
Wade Guthrie | 89e6cb3 | 2013-03-07 08:03:45 -0800 | [diff] [blame] | 83 | |
| 84 | private: |
| 85 | DISALLOW_COPY_AND_ASSIGN(ControlAttributeMcastGroups); |
Wade Guthrie | f162f8b | 2013-02-27 14:13:55 -0800 | [diff] [blame] | 86 | }; |
| 87 | |
| 88 | } // namespace shill |
| 89 | |
| 90 | #endif // SHILL_CONTROL_NETLINK_ATTRIBUTE_H_ |