Codebase list tayga / fresh-snapshots/main
Refresh patches. Debian Janitor 2 years ago
11 changed file(s) with 70 addition(s) and 67 deletion(s). Raw diff Collapse all Expand all
66 tayga.conf.example | 2 +-
77 1 file changed, 1 insertion(+), 1 deletion(-)
88
9 diff --git a/tayga.conf.example b/tayga.conf.example
10 index e5603d7..99b23c1 100644
11 --- a/tayga.conf.example
12 +++ b/tayga.conf.example
9 Index: tayga/tayga.conf.example
10 ===================================================================
11 --- tayga.orig/tayga.conf.example
12 +++ tayga/tayga.conf.example
1313 @@ -84,7 +84,7 @@ dynamic-pool 192.168.255.0/24
1414 #
1515 # Optional.
66 tayga.8 | 2 +-
77 1 file changed, 1 insertion(+), 1 deletion(-)
88
9 diff --git a/tayga.8 b/tayga.8
10 index d13d9ac..efb746f 100644
11 --- a/tayga.8
12 +++ b/tayga.8
13 @@ -53,7 +53,7 @@ not running. This allows host-side network parameters and firewall rules to
9 Index: tayga/tayga.8
10 ===================================================================
11 --- tayga.orig/tayga.8
12 +++ tayga/tayga.8
13 @@ -53,7 +53,7 @@ not running. This allows host-side netw
1414 be configured prior to commencement of packet translation. This may simplify
1515 network configuration on the host; for example, systems which use a
1616 Debian-style /etc/network/interfaces file may configure TAYGA's TUN device at
66 configure.ac | 2 --
77 1 file changed, 2 deletions(-)
88
9 diff --git a/configure.ac b/configure.ac
10 index 3d2a6c9..5640305 100644
11 --- a/configure.ac
12 +++ b/configure.ac
9 Index: tayga/configure.ac
10 ===================================================================
11 --- tayga.orig/configure.ac
12 +++ tayga/configure.ac
1313 @@ -5,8 +5,6 @@ AC_CONFIG_HEADERS(config.h)
1414
1515 AC_PROG_CC
66 configure.ac | 2 +-
77 1 file changed, 1 insertion(+), 1 deletion(-)
88
9 diff --git a/configure.ac b/configure.ac
10 index 5640305..fa99305 100644
11 --- a/configure.ac
12 +++ b/configure.ac
9 Index: tayga/configure.ac
10 ===================================================================
11 --- tayga.orig/configure.ac
12 +++ tayga/configure.ac
1313 @@ -5,7 +5,7 @@ AC_CONFIG_HEADERS(config.h)
1414
1515 AC_PROG_CC
66 tayga.c | 12 ++++++++++--
77 1 file changed, 10 insertions(+), 2 deletions(-)
88
9 diff --git a/tayga.c b/tayga.c
10 index fbd2e64..3886831 100644
11 --- a/tayga.c
12 +++ b/tayga.c
9 Index: tayga/tayga.c
10 ===================================================================
11 --- tayga.orig/tayga.c
12 +++ tayga/tayga.c
1313 @@ -388,7 +388,11 @@ int main(int argc, char **argv)
1414 "is specified in %s\n", conffile);
1515 exit(1);
1414 tayga.c | 5 ++++-
1515 1 file changed, 4 insertions(+), 1 deletion(-)
1616
17 diff --git a/tayga.c b/tayga.c
18 index 3886831..5027d0a 100644
19 --- a/tayga.c
20 +++ b/tayga.c
17 Index: tayga/tayga.c
18 ===================================================================
19 --- tayga.orig/tayga.c
20 +++ tayga/tayga.c
2121 @@ -439,7 +439,10 @@ int main(int argc, char **argv)
2222
2323 if (pidfile) {
1212 conffile.c | 40 +++++++++++++++++++++++++++++++++++++---
1313 2 files changed, 60 insertions(+), 9 deletions(-)
1414
15 --- a/addrmap.c
16 +++ b/addrmap.c
17 @@ -22,10 +22,6 @@
15 Index: tayga/addrmap.c
16 ===================================================================
17 --- tayga.orig/addrmap.c
18 +++ tayga/addrmap.c
19 @@ -22,10 +22,6 @@ extern time_t now;
1820
1921 int validate_ip4_addr(const struct in_addr *a)
2022 {
2527 /* First octet == 127 */
2628 if ((a->s_addr & htonl(0xff000000)) == htonl(0x7f000000))
2729 return -1;
28 @@ -97,7 +93,7 @@
30 @@ -97,7 +93,7 @@ int is_private_ip4_addr(const struct in_
2931
3032 int calc_ip4_mask(struct in_addr *mask, const struct in_addr *addr, int len)
3133 {
3436 if (addr && (addr->s_addr & ~mask->s_addr))
3537 return -1;
3638 return 0;
37 @@ -422,6 +418,9 @@
39 @@ -422,6 +418,9 @@ int map_ip4_to_ip6(struct in6_addr *addr
3840 case MAP_TYPE_STATIC:
3941 s = container_of(map4, struct map_static, map4);
4042 *addr6 = s->map6.addr;
4446 break;
4547 case MAP_TYPE_RFC6052:
4648 s = container_of(map4, struct map_static, map4);
47 @@ -564,7 +563,13 @@
49 @@ -564,7 +563,13 @@ int map_ip6_to_ip4(struct in_addr *addr4
4850 switch (map6->type) {
4951 case MAP_TYPE_STATIC:
5052 s = container_of(map6, struct map_static, map6);
5961 break;
6062 case MAP_TYPE_RFC6052:
6163 if (extract_from_prefix(addr4, addr6, map6->prefix_len) < 0)
62 @@ -629,3 +634,10 @@
64 @@ -629,3 +634,10 @@ void addrmap_maint(void)
6365 }
6466 }
6567 }
7072 +indent-tabs-mode: t
7173 +End:
7274 +*/
73 --- a/conffile.c
74 +++ b/conffile.c
75 @@ -217,16 +217,43 @@
75 Index: tayga/conffile.c
76 ===================================================================
77 --- tayga.orig/conffile.c
78 +++ tayga/conffile.c
79 @@ -217,16 +217,43 @@ static void config_map(int ln, int arg_c
7680
7781 m = alloc_map_static(ln);
7882
119123 if (validate_ip4_addr(&m->map4.addr) < 0) {
120124 slog(LOG_CRIT, "Cannot use reserved address %s in map "
121125 "directive, aborting...\n", args[0]);
122 @@ -490,3 +517,10 @@
126 @@ -490,3 +517,10 @@ malloc_fail:
123127 slog(LOG_CRIT, "Unable to allocate config memory\n");
124128 exit(1);
125129 }
77 tayga.conf.5 | 19 ++++++++++++++-----
88 2 files changed, 19 insertions(+), 10 deletions(-)
99
10 diff --git a/tayga.8 b/tayga.8
11 index efb746f..e69cfc3 100644
12 --- a/tayga.8
13 +++ b/tayga.8
10 Index: tayga/tayga.8
11 ===================================================================
12 --- tayga.orig/tayga.8
13 +++ tayga/tayga.8
1414 @@ -1,4 +1,4 @@
1515 -.TH TAYGA "8" "June 2011" "TAYGA 0.9.2" ""
1616 +.TH TAYGA "8" "Dec 2018" "TAYGA 0.9.2" ""
1717
1818 .SH NAME
1919 tayga \- stateless NAT64 daemon
20 @@ -19,10 +19,10 @@ driver, TAYGA receives IPv4 and IPv6 packets from the host's network stack,
20 @@ -19,10 +19,10 @@ driver, TAYGA receives IPv4 and IPv6 pac
2121 translates them to the other protocol, and then sends the translated packets
2222 back to the host using the same TUN interface.
2323 .P
3232 .P
3333 As a stateless NAT, TAYGA requires a one-to-one mapping between IPv4 addresses
3434 and IPv6 addresses. Mapping multiple IPv6 addresses onto a single IPv4
35 diff --git a/tayga.conf.5 b/tayga.conf.5
36 index 3e084aa..7522c9d 100644
37 --- a/tayga.conf.5
38 +++ b/tayga.conf.5
35 Index: tayga/tayga.conf.5
36 ===================================================================
37 --- tayga.orig/tayga.conf.5
38 +++ tayga/tayga.conf.5
3939 @@ -1,4 +1,4 @@
4040 -.TH TAYGA.CONF "5" "June 2011" "TAYGA 0.9.2" ""
4141 +.TH TAYGA.CONF "5" "Dec 2018" "TAYGA 0.9.2" ""
1010 3 files changed, 55 insertions(+)
1111 create mode 100644 tayga.service
1212
13 diff --git a/Makefile.am b/Makefile.am
14 index 55fce24..b90354b 100644
15 --- a/Makefile.am
16 +++ b/Makefile.am
13 Index: tayga/Makefile.am
14 ===================================================================
15 --- tayga.orig/Makefile.am
16 +++ tayga/Makefile.am
1717 @@ -7,3 +7,10 @@ dist_sysconf_DATA = tayga.conf.example
1818 dist_man_MANS = tayga.8 tayga.conf.5
1919
2525 +if HAVE_SYSTEMD
2626 +systemdsystemunit_DATA = tayga.service
2727 +endif
28 diff --git a/configure.ac b/configure.ac
29 index fa99305..ca65097 100644
30 --- a/configure.ac
31 +++ b/configure.ac
28 Index: tayga/configure.ac
29 ===================================================================
30 --- tayga.orig/configure.ac
31 +++ tayga/configure.ac
3232 @@ -3,6 +3,23 @@ AC_CONFIG_SRCDIR(nat64.c)
3333 AM_INIT_AUTOMAKE([foreign dist-bzip2])
3434 AC_CONFIG_HEADERS(config.h)
5353 AC_PROG_CC
5454
5555 tayga_conf_path='${sysconfdir}/tayga.conf'
56 diff --git a/tayga.service b/tayga.service
57 new file mode 100644
58 index 0000000..939b5c4
56 Index: tayga/tayga.service
57 ===================================================================
5958 --- /dev/null
60 +++ b/tayga.service
59 +++ tayga/tayga.service
6160 @@ -0,0 +1,31 @@
6261 +[Unit]
6362 +Description=Simple, no-fuss NAT64
99 tayga.h | 1 +
1010 1 file changed, 1 insertion(+)
1111
12 diff --git a/tayga.h b/tayga.h
13 index 2284d2a..c8aadb8 100644
14 --- a/tayga.h
15 +++ b/tayga.h
12 Index: tayga/tayga.h
13 ===================================================================
14 --- tayga.orig/tayga.h
15 +++ tayga/tayga.h
1616 @@ -20,6 +20,7 @@
1717 #include <sys/stat.h>
1818 #include <sys/ioctl.h>
1111 conffile.c | 4 ++--
1212 1 file changed, 2 insertions(+), 2 deletions(-)
1313
14 diff --git a/conffile.c b/conffile.c
15 index dd4193c..0406cfd 100644
16 --- a/conffile.c
17 +++ b/conffile.c
18 @@ -222,7 +222,7 @@ static void config_map(int ln, int arg_count, char **args)
14 Index: tayga/conffile.c
15 ===================================================================
16 --- tayga.orig/conffile.c
17 +++ tayga/conffile.c
18 @@ -222,7 +222,7 @@ static void config_map(int ln, int arg_c
1919 unsigned int prefix4 = 32;
2020 if (slash) {
2121 prefix4 = atoi(slash+1);
2424 }
2525
2626 if (!inet_pton(AF_INET, args[0], &m->map4.addr)) {
27 @@ -237,7 +237,7 @@ static void config_map(int ln, int arg_count, char **args)
27 @@ -237,7 +237,7 @@ static void config_map(int ln, int arg_c
2828 slash = strchr(args[1], '/');
2929 if (slash) {
3030 prefix6 = atoi(slash+1);