diff options
Diffstat (limited to 'include/net/rtnetlink.h')
-rw-r--r-- | include/net/rtnetlink.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 35be0bbcd7da..4093ca78cf60 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
@@ -92,8 +92,10 @@ extern void rtnl_link_unregister(struct rtnl_link_ops *ops); | |||
92 | * specific netlink attributes. | 92 | * specific netlink attributes. |
93 | * @get_link_af_size: Function to calculate size of address family specific | 93 | * @get_link_af_size: Function to calculate size of address family specific |
94 | * netlink attributes exlusive the container attribute. | 94 | * netlink attributes exlusive the container attribute. |
95 | * @parse_link_af: Function to parse a IFLA_AF_SPEC attribute and modify | 95 | * @validate_link_af: Validate a IFLA_AF_SPEC attribute, must check attr |
96 | * net_device accordingly. | 96 | * for invalid configuration settings. |
97 | * @set_link_af: Function to parse a IFLA_AF_SPEC attribute and modify | ||
98 | * net_device accordingly. | ||
97 | */ | 99 | */ |
98 | struct rtnl_af_ops { | 100 | struct rtnl_af_ops { |
99 | struct list_head list; | 101 | struct list_head list; |
@@ -103,8 +105,10 @@ struct rtnl_af_ops { | |||
103 | const struct net_device *dev); | 105 | const struct net_device *dev); |
104 | size_t (*get_link_af_size)(const struct net_device *dev); | 106 | size_t (*get_link_af_size)(const struct net_device *dev); |
105 | 107 | ||
106 | int (*parse_link_af)(struct net_device *dev, | 108 | int (*validate_link_af)(const struct net_device *dev, |
107 | const struct nlattr *attr); | 109 | const struct nlattr *attr); |
110 | int (*set_link_af)(struct net_device *dev, | ||
111 | const struct nlattr *attr); | ||
108 | }; | 112 | }; |
109 | 113 | ||
110 | extern int __rtnl_af_register(struct rtnl_af_ops *ops); | 114 | extern int __rtnl_af_register(struct rtnl_af_ops *ops); |