diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-09-17 12:27:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-09-17 12:27:57 +0200 |
commit | 67785120a503ac636631a798d1cda127e4386d2d (patch) | |
tree | 46900f5d06a103a9e969460ac1af458a01fcc8db /package/aiccu/src/common | |
parent | 95444b27abfb723db6c66c08dc6c12c7e1128e2e (diff) |
aiccu: remove, sixxs service is no longer available
Diffstat (limited to 'package/aiccu/src/common')
-rw-r--r-- | package/aiccu/src/common/dn_skipname.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/package/aiccu/src/common/dn_skipname.c b/package/aiccu/src/common/dn_skipname.c deleted file mode 100644 index 3b4a756b9..000000000 --- a/package/aiccu/src/common/dn_skipname.c +++ /dev/null @@ -1,51 +0,0 @@ -#include <errno.h> -#include <resolv.h> - -/* Ripped from glibc 2.4 sources. */ - -/* - * ns_name_skip(ptrptr, eom) - * Advance *ptrptr to skip over the compressed name it points at. - * return: - * 0 on success, -1 (with errno set) on failure. - */ -int ns_name_skip(const unsigned char **ptrptr, const unsigned char *eom) -{ - const unsigned char *cp; - unsigned int n; - - cp = *ptrptr; - while (cp < eom && (n = *cp++) != 0) - { - /* Check for indirection. */ - switch (n & NS_CMPRSFLGS) { - case 0: /* normal case, n == len */ - cp += n; - continue; - case NS_CMPRSFLGS: /* indirection */ - cp++; - break; - default: /* illegal type */ - errno = EMSGSIZE; - return (-1); - } - break; - } - if (cp > eom) - { - errno = EMSGSIZE; - return (-1); - } - *ptrptr = cp; - return (0); -} - -int dn_skipname(const unsigned char *ptr, const unsigned char *eom) -{ - const unsigned char *saveptr = ptr; - - if(ns_name_skip(&ptr, eom) == -1) - return (-1); - return (ptr - saveptr); -} - |