probe_ipv6 revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright 2003 by Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "%Z%%M% %I% %E% SMI"
set -e
trap "rm -f tmp$$[abc].[oc]" 0
#include <sys/types.h>
#include <netinet/in.h>
struct sockaddr_in6 xx;
EOF
#include <sys/types.h>
#include <netinet/in.h>
struct in6_addr xx;
EOF
#include <sys/types.h>
#include <netinet/in.h>
struct sockaddr_in6 xx;
main() { xx.sin6_scope_id = 0; }
EOF
/* This file is automatically generated. Do Not Edit. */
#ifndef ${target}_h
#define ${target}_h
EOF
then
echo "#define HAS_INET6_STRUCTS" >> ${new}
then
:
else
echo "#define in6_addr in_addr6" >> ${new}
fi
then
echo "#define HAVE_SIN6_SCOPE_ID" >> ${new}
else
echo "#undef HAVE_SIN6_SCOPE_ID" >> ${new}
fi
else
echo "#undef HAS_INET6_STRUCTS" >> ${new}
fi
echo >> ${new}
echo "#endif" >> ${new}
if [ -f ${old} ]; then
else
fi
else
fi
exit 0