yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * netlink/cli/cls.h CLI Classifier Helpers |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation version 2.1 |
| 7 | * of the License. |
| 8 | * |
| 9 | * Copyright (c) 2010 Thomas Graf <tgraf@suug.ch> |
| 10 | */ |
| 11 | |
| 12 | #ifndef __NETLINK_CLI_CLS_H_ |
| 13 | #define __NETLINK_CLI_CLS_H_ |
| 14 | |
| 15 | #include <netlink/route/classifier.h> |
| 16 | #include <netlink/cli/tc.h> |
| 17 | |
| 18 | extern struct rtnl_cls * nl_cli_cls_alloc(void); |
| 19 | extern struct nl_cache * nl_cli_cls_alloc_cache(struct nl_sock *, |
| 20 | int, uint32_t); |
| 21 | extern void nl_cli_cls_parse_proto(struct rtnl_cls *, char *); |
| 22 | extern struct rtnl_ematch_tree *nl_cli_cls_parse_ematch(struct rtnl_cls *, char *); |
| 23 | |
| 24 | #endif |