along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: connlist.c,v 1.1.2.12 2000/11/03 22:35:10 zarq Exp $
+ $Id: connlist.c,v 1.1.2.13 2000/11/04 11:49:56 guus Exp $
*/
#include "config.h"
#include <syslog.h>
#include "net.h" /* Don't ask. */
+#include "netutl.h"
#include "config.h"
#include "conf.h"
#include <utils.h>
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: connlist.h,v 1.1.2.10 2000/11/03 22:35:10 zarq Exp $
+ $Id: connlist.h,v 1.1.2.11 2000/11/04 11:49:57 guus Exp $
*/
#ifndef __TINC_CONNLIST_H__
char *hostname; /* the hostname of its real ip */
short unsigned int port; /* his portnumber */
int protocol_version; /* used protocol */
- long int options; /* options turned on for this connection */
+ long unsigned int options; /* options turned on for this connection */
int flags; /* his flags */
int socket; /* our udp vpn socket */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.59 2000/11/04 10:37:27 guus Exp $
+ $Id: net.c,v 1.35.4.60 2000/11/04 11:49:57 guus Exp $
*/
#include "config.h"
void close_network_connections(void)
{
conn_list_t *p;
- char *scriptname;
cp
for(p = conn_list; p != NULL; p = p->next)
{
myself = NULL;
}
- /* Execute tinc-down script right before shutting down the interface */
+ close(tap_fd);
+
+ /* Execute tinc-down script right after shutting down the interface */
execute_script("tinc-down");
- close(tap_fd);
destroy_conn_list();
syslog(LOG_NOTICE, _("Terminating"));
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: netutl.h,v 1.2.4.3 2000/10/11 22:01:00 guus Exp $
+ $Id: netutl.h,v 1.2.4.4 2000/11/04 11:49:58 guus Exp $
*/
#ifndef __TINC_NETUTL_H__
#include "net.h"
#include "conf.h"
+extern void destroy_queue(packet_queue_t *);
extern char *hostlookup(unsigned long);
extern ip_mask_t *strtoip(char*);
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: subnet.c,v 1.1.2.9 2000/11/03 22:35:12 zarq Exp $
+ $Id: subnet.c,v 1.1.2.10 2000/11/04 11:49:58 guus Exp $
*/
#include "config.h"
asprintf(&netstr, "%d,%lx/%lx", subnet->type, subnet->net.ipv4.address, subnet->net.ipv4.mask);
break;
case SUBNET_IPV6:
- asprintf(&netstr, "%d,%hx:%hx:%hx:%hx:%hx:%hx:%hx:%hx/%hx:%hx:%hx:%hx:%hx:%hx:%hx:%hx",
+ asprintf(&netstr, "%d,%hx:%hx:%hx:%hx:%hx:%hx:%hx:%hx/%hx:%hx:%hx:%hx:%hx:%hx:%hx:%hx", subnet->type,
subnet->net.ipv6.address.x[0],
subnet->net.ipv6.address.x[1],
subnet->net.ipv6.address.x[2],