2 +++ b/common/dn_skipname.c
7 +/* Ripped from glibc 2.4 sources. */
10 + * ns_name_skip(ptrptr, eom)
11 + * Advance *ptrptr to skip over the compressed name it points at.
13 + * 0 on success, -1 (with errno set) on failure.
15 +int ns_name_skip(const u_char **ptrptr, const u_char *eom)
21 + while (cp < eom && (n = *cp++) != 0)
23 + /* Check for indirection. */
24 + switch (n & NS_CMPRSFLGS) {
25 + case 0: /* normal case, n == len */
28 + case NS_CMPRSFLGS: /* indirection */
31 + default: /* illegal type */
46 +int dn_skipname(const u_char *ptr, const u_char *eom)
48 + const u_char *saveptr = ptr;
50 + if(ns_name_skip(&ptr, eom) == -1)
52 + return (ptr - saveptr);
55 --- a/unix-console/Makefile
56 +++ b/unix-console/Makefile
58 # $Date: 2007-01-15 11:04:27 $
59 # **********************************************************/
61 -SRCS = main.c ../common/tun.c ../common/aiccu.c ../common/hash_md5.c ../common/hash_sha1.c ../common/common.c ../common/heartbeat.c ../common/tic.c ../common/ayiya.c ../common/aiccu_test.c ../common/resolver.c
62 +SRCS = main.c ../common/tun.c ../common/aiccu.c ../common/hash_md5.c ../common/hash_sha1.c ../common/common.c ../common/heartbeat.c ../common/tic.c ../common/ayiya.c ../common/aiccu_test.c ../common/resolver.c ../common/dn_skipname.c
63 INCS = ../common/tun.h ../common/aiccu.h ../common/hash_md5.h ../common/hash_sha1.h ../common/common.h ../common/heartbeat.h ../common/tic.h ../common/ayiya.h ../common/resolver.h
64 -OBJS = main.o ../common/tun.o ../common/aiccu.o ../common/hash_md5.o ../common/hash_sha1.o ../common/common.o ../common/heartbeat.o ../common/tic.o ../common/ayiya.o ../common/aiccu_test.o ../common/resolver.o
65 +OBJS = main.o ../common/tun.o ../common/aiccu.o ../common/hash_md5.o ../common/hash_sha1.o ../common/common.o ../common/heartbeat.o ../common/tic.o ../common/ayiya.o ../common/aiccu_test.o ../common/resolver.o ../common/dn_skipname.o
67 # New features not fully implemented and thus disabled for now
68 #CFLAGS += -D NEWSTUFF_TSP -D NEWSTUFF_TEEPEE