From 0136c76f966b0d74ff0666abb5dd7a1a2516f931 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Wed, 22 Nov 2006 14:17:55 +0100 Subject: v0.8.3 - Fixed: bug in udp_listen function when AF_INET6 is not defined --- ChangeLog | 3 +++ README | 2 +- configure.ac | 4 ++-- doc/afclient.1 | 2 +- doc/afclient.conf.5 | 2 +- doc/afserver.1 | 2 +- doc/afserver.conf.5 | 2 +- doc/en/README | 2 +- src/activefor.h | 2 +- src/network.c | 8 +++++--- 10 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 52d5cd5..6c952a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +21.11.2006 (v0.8.3): + - Fixed: bug in udp_listen function when AF_INET6 is not defined + 13.09.2006 (v0.8.2): - Fixed: bug in resource deallocation for remote admin clients diff --git a/README b/README index e93a125..08a3b1b 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -AF - Active Port Forwarder 0.8.2 - README +AF - Active Port Forwarder 0.8.3 - README Copyright (C) 2003-2006 jeremian - ================================================================= diff --git a/configure.ac b/configure.ac index dd39ada..fda1509 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([Active port forwarder], [0.8.2], [jeremian@poczta.fm], [apf]) -AM_INIT_AUTOMAKE([apf], [0.8.2]) +AC_INIT([Active port forwarder], [0.8.3], [jeremian@poczta.fm], [apf]) +AM_INIT_AUTOMAKE([apf], [0.8.3]) AC_COPYRIGHT([ Copyright (C) 2003-2006 jeremian - =================== diff --git a/doc/afclient.1 b/doc/afclient.1 index 9517f1e..155e906 100644 --- a/doc/afclient.1 +++ b/doc/afclient.1 @@ -1,4 +1,4 @@ -.TH afclient 1 "apf 0.8.2" Jeremian +.TH afclient 1 "apf 0.8.3" Jeremian .SH NAME afclient \- active port forwarder client .SH SYNOPSIS diff --git a/doc/afclient.conf.5 b/doc/afclient.conf.5 index fc0c86e..51df256 100644 --- a/doc/afclient.conf.5 +++ b/doc/afclient.conf.5 @@ -1,4 +1,4 @@ -.TH afclient.conf 5 "apf 0.8.2" Jeremian +.TH afclient.conf 5 "apf 0.8.3" Jeremian .SH NAME afclient.conf \- Configuration File for afclient .SH INTRODUCTION diff --git a/doc/afserver.1 b/doc/afserver.1 index 6836f1f..9c0ac35 100644 --- a/doc/afserver.1 +++ b/doc/afserver.1 @@ -1,4 +1,4 @@ -.TH afserver 1 "apf 0.8.2" Jeremian +.TH afserver 1 "apf 0.8.3" Jeremian .SH NAME afserver \- active port forwarder server .SH SYNOPSIS diff --git a/doc/afserver.conf.5 b/doc/afserver.conf.5 index 5637500..125db5a 100644 --- a/doc/afserver.conf.5 +++ b/doc/afserver.conf.5 @@ -1,4 +1,4 @@ -.TH afserver.conf 5 "apf 0.8.2" Jeremian +.TH afserver.conf 5 "apf 0.8.3" Jeremian .SH NAME afserver.conf \- Configuration File for afserver .SH INTRODUCTION diff --git a/doc/en/README b/doc/en/README index e93a125..08a3b1b 100644 --- a/doc/en/README +++ b/doc/en/README @@ -1,4 +1,4 @@ -AF - Active Port Forwarder 0.8.2 - README +AF - Active Port Forwarder 0.8.3 - README Copyright (C) 2003-2006 jeremian - ================================================================= diff --git a/src/activefor.h b/src/activefor.h index 2e667af..e20dc63 100644 --- a/src/activefor.h +++ b/src/activefor.h @@ -53,7 +53,7 @@ #define S_STATE_OPENING_CLOSED 17 #define S_STATE_KICKING 19 -#define AF_VER(info) info" v0.8.2" +#define AF_VER(info) info" v0.8.3" #define TYPE_TCP 1 #define TYPE_UDP 3 diff --git a/src/network.c b/src/network.c index 6a62a59..0980893 100644 --- a/src/network.c +++ b/src/network.c @@ -155,9 +155,11 @@ ip_listen(int* sockfd, const char *host, const char *serv, socklen_t *addrlenp, return 4; } - if (listen((*sockfd), 5)){ - return 5; - } + if (type & 0x01) { /* tcp_listen */ + if (listen((*sockfd), 5)){ + return 5; + } + } if (addrlenp) { *addrlenp = sizeof(servaddr); /* return size of protocol address */ -- cgit v1.1