Don't assume sa.sa_family is a short int.
[tinc] / src / edge.h
index a1b7e3e..ed46b8a 100644 (file)
@@ -1,6 +1,6 @@
 /*
     edge.h -- header for edge.c
-    Copyright (C) 2001-2006 Guus Sliepen <guus@tinc-vpn.org>,
+    Copyright (C) 2001-2012 Guus Sliepen <guus@tinc-vpn.org>,
                   2001-2005 Ivo Timmermans
 
     This program is free software; you can redistribute it and/or modify
@@ -30,6 +30,7 @@ typedef struct edge_t {
        struct node_t *from;
        struct node_t *to;
        sockaddr_t address;
+       sockaddr_t local_address;
 
        uint32_t options;                       /* options turned on for this edge */
        int weight;                             /* weight of this edge */