diff options
author | Dave Barach <dave@barachs.net> | 2017-10-10 17:53:14 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-10-13 20:20:09 +0000 |
commit | 6545716c073c88ad86458620c6dbc59ba1cd00bb (patch) | |
tree | 2bd8b7d9cd0e221669081aba27786e1ce5eee964 /src/vnet/api_errno.h | |
parent | 7e550693dffd368b9dd8e0397674cfc4d10f9579 (diff) |
VPP-1027: DNS name resolver
This patch is a plausible first-cut, suitable for initial testing by
vcl (host stack client library).
Main features;
- recursive name resolution
- multiple ip4/ip6 name servers
- cache size limit enforcement
- currently limited to 65K
- ttl / aging
- static mapping support
- show / clear / debug CLI commands
Binary APIs provided for the following:
- add/delete name servers
- enable/disable the name cache
- resolve a name
To Do list:
- Respond to ip4/ip6 client DNS requests (vs. binary API requests)
- Perf / scale tuning
- map pending transaction ids to pool indices, so the cache
can (greatly) exceed 65K entries
- Security improvements
- Use unpredictable dns transaction IDs, related to previous item
- Make sure that response-packet src ip addresses match the server
- Add binary APIs
- deliver raw response data to clients
- control recursive name resolution
- Documentation
Change-Id: I48c373d5c05d7108ccd814d4055caf8c75ca10b7
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/api_errno.h')
-rw-r--r-- | src/vnet/api_errno.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/api_errno.h b/src/vnet/api_errno.h index eeb727672bf..d77af973b3b 100644 --- a/src/vnet/api_errno.h +++ b/src/vnet/api_errno.h @@ -122,6 +122,14 @@ _(APP_WRONG_NS_SECRET, -129, "Wrong app namespace secret") \ _(APP_CONNECT_SCOPE, -130, "Connect scope") \ _(APP_ALREADY_ATTACHED, -131, "App already attached") \ _(SESSION_REDIRECT, -132, "Redirect failed") \ +_(ILLEGAL_NAME, -133, "Illegal name") \ +_(NO_NAME_SERVERS, -134, "No name servers configured") \ +_(NAME_SERVER_NOT_FOUND, -135, "Name server not found") \ +_(NAME_RESOLUTION_NOT_ENABLED, -136, "Name resolution not enabled") \ +_(NAME_SERVER_FORMAT_ERROR, -137, "Server format error (bug!)") \ +_(NAME_SERVER_NO_SUCH_NAME, -138, "No such name") \ +_(NAME_SERVER_NO_ADDRESSES, -139, "No addresses available") \ +_(NAME_SERVER_NEXT_SERVER, -140, "Retry with new server") typedef enum { |