search for: net_socket

Displaying 17 results from an estimated 17 matches for "net_socket".

Did you mean: get_socket
2017 Mar 06
2
Suspicious code in net_socket.c
Good afternoon! Module - net_socket.c Function - get_known_addresses --------------------------------------------------- struct addrinfo *nai = xzalloc(sizeof *nai); if(ai) ai->ai_next = nai; ai = nai; -------------------------------------------------- For my opinion, possible causes: 1. Lost trails (ai_next) 2. ai_next not...
2017 Mar 08
1
Suspicious code in net_socket.c
...with increased debug level and check logs/journals after it. -- Rgds! Roman Savelyev -----Original Message----- From: tinc-devel [mailto:tinc-devel-bounces at tinc-vpn.org] On Behalf Of Guus Sliepen Sent: Tuesday, March 7, 2017 9:24 PM To: tinc-devel at tinc-vpn.org Subject: Re: Suspicious code in net_socket.c On Mon, Mar 06, 2017 at 01:00:45PM +0300, Roman S wrote: > Module - net_socket.c > Function - get_known_addresses > --------------------------------------------------- > struct addrinfo *nai = xzalloc(sizeof *nai); > if(ai) > ai->ai_next = nai; > ai = nai; > ---...
2017 Mar 07
0
Suspicious code in net_socket.c
On Mon, Mar 06, 2017 at 01:00:45PM +0300, Roman S wrote: > Module - net_socket.c > Function - get_known_addresses > --------------------------------------------------- > struct addrinfo *nai = xzalloc(sizeof *nai); > if(ai) > ai->ai_next = nai; > ai = nai; > -------------------------------------------------- > For my opinion, possible causes:...
2015 Jul 02
0
[PATCH 2/2] setup_outgoing_connection: log to LOG_DEBUG on if no known address
...onnect = yes, tinc tries to establish connections to known hosts. However, you could have set no Address for this host, which is perfectly fine (as long as there is at least one bootstrap node with an address or a local discovered node already part of the network) So log this to LOG_DEBUG --- src/net_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_socket.c b/src/net_socket.c index 526d382..97d6c44 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -617,7 +617,7 @@ void setup_outgoing_connection(outgoing_t *outgoing) { if(n) outgoing->aip = outgoing-&...
2015 Jul 02
1
[PATCH 1/2] (read|append)_config_file: log open errors as LOG_DEBUG
In a "decentrally managed vpn" it is very likely that host config files for some reachable nodes do not exist. Currently, tinc fills the logs with "Cannot open config file" messages. This commit changes the log level to LOG_DEBUG so syslog doesn't get filled by default. --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.c
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd daemon. I'd like to mark all sockets established by a tincd process with a mark passed as an argument in the command line. What could be the purpose of this new option? The goal of this option is to be able to have several tincd process running at the same time using the same port but using different ip. In
2010 Nov 13
3
[PATCH 1/4] Experimental IFF_ONE_QUEUE support for Linux
--- doc/tinc.conf.5.in | 3 +++ src/linux/device.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/doc/tinc.conf.5.in b/doc/tinc.conf.5.in index 2bfd5fe..01f7f81 100644 --- a/doc/tinc.conf.5.in +++ b/doc/tinc.conf.5.in @@ -255,6 +255,9 @@ a lookup if your DNS server is not responding. This does not affect resolving hostnames to IP addresses from the host
2020 Jun 19
2
SegFault when using TunnelServer=yes
...t;) at protocol.c:146 #3  0x000055555555e993 in receive_meta (c=c at entry=0x555555851be0) at meta.c:333 #4  0x00005555555603f9 in handle_meta_connection_data (c=c at entry=0x555555851be0) at net.c:304 #5  0x00005555555678c2 in handle_meta_io (data=0x555555851be0, flags=<optimized out>) at net_socket.c:520 #6  0x000055555555c60a in event_loop () at event.c:359 #7  0x00005555555607f2 in main_loop () at net.c:510 #8  0x0000555555559208 in main (argc=6, argv=<optimized out>) at tincd.c:558 (gdb) bt full #0  0x000055555556de41 in send_ans_key (to=to at entry=0x555555851060) at protocol_key.c...
2009 Jul 27
6
Stuck with dovecot-sieve and horde-ingo ...
...nnel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable DB 1.7.12 stable Date 1.4.7 stable Log 1.9.11 stable Mail 1.1.14 stable Net_Sieve 1.1.6 stable Net_Socket 1.0.9 stable PEAR 1.4.6 stable XML_RPC 1.5.1 stable I would appreciate any input on this as this issue now already is unsolved for weeks now. And as always that is one of the features the customer wants first ;-) Aside from this dovecot is working great here, thanks !...
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...at Dec 16 13:46:40 2006 +++ tinc-1.0.8.my/src/net_setup.c Thu Sep 25 11:19:53 2008 @@ -437,7 +437,7 @@ myself->nexthop = myself; myself->via = myself; - myself->status.reachable = true; + myself->status.st.reachable = true; node_add(myself); graph(); diff -ubr tinc-1.0.8/src/net_socket.c tinc-1.0.8.my/src/net_socket.c --- tinc-1.0.8/src/net_socket.c Wed May 16 16:42:14 2007 +++ tinc-1.0.8.my/src/net_socket.c Thu Sep 25 11:19:53 2008 @@ -281,7 +281,7 @@ if(!c->outgoing->cfg) { ifdebug(CONNECTIONS) logger(LOG_ERR, _("Could not set up a meta connection to %s")...
2020 Jul 27
3
SegFault when using TunnelServer=yes
...#3  0x000055555555e993 in receive_meta (c=c at entry=0x555555851be0) at > meta.c:333 > #4  0x00005555555603f9 in handle_meta_connection_data > (c=c at entry=0x555555851be0) at net.c:304 > #5  0x00005555555678c2 in handle_meta_io (data=0x555555851be0, > flags=<optimized out>) at net_socket.c:520 > #6  0x000055555555c60a in event_loop () at event.c:359 > #7  0x00005555555607f2 in main_loop () at net.c:510 > #8  0x0000555555559208 in main (argc=6, argv=<optimized out>) at tincd.c:558 > (gdb) bt full > #0  0x000055555556de41 in send_ans_key (to=to at entry=0x5555558...
2020 Jul 27
0
SegFault when using TunnelServer=yes
...t;) at protocol.c:146 #3  0x000055555555e993 in receive_meta (c=c at entry=0x555555851be0) at meta.c:333 #4  0x00005555555603f9 in handle_meta_connection_data (c=c at entry=0x555555851be0) at net.c:304 #5  0x00005555555678c2 in handle_meta_io (data=0x555555851be0, flags=<optimized out>) at net_socket.c:520 #6  0x000055555555c60a in event_loop () at event.c:359 #7  0x00005555555607f2 in main_loop () at net.c:510 #8  0x0000555555559208 in main (argc=6, argv=<optimized out>) at tincd.c:558 (gdb) bt full #0  0x000055555556de41 in send_ans_key (to=to at entry=0x555555851060) at protocol_key.c...
2020 Jul 28
0
SegFault when using TunnelServer=yes
...#3  0x000055555555e993 in receive_meta (c=c at entry=0x555555851be0) at > meta.c:333 > #4  0x00005555555603f9 in handle_meta_connection_data > (c=c at entry=0x555555851be0) at net.c:304 > #5  0x00005555555678c2 in handle_meta_io (data=0x555555851be0, > flags=<optimized out>) at net_socket.c:520 > #6  0x000055555555c60a in event_loop () at event.c:359 > #7  0x00005555555607f2 in main_loop () at net.c:510 > #8  0x0000555555559208 in main (argc=6, argv=<optimized out>) at tincd.c:558 > (gdb) bt full > #0  0x000055555556de41 in send_ans_key (to=to at entry=0x5555558...
2016 Oct 06
0
Dev: new option to mark all tincd socket of a tincd process
...an argument in the command line. [...] > Do you think its something interesting? > Do you think its a hard work to do? > If not i could probably try to do it and propose a patch for that if you > think it is interesting. I think it is relatively easy to do. There are two places in src/net_socket.c where you would have to call setsockopt() with the SO_MARK option: configure_tcp() and setup_vpn_in_socket(). The first one is run for all incoming and outgoing TCP sockets, the second one sets up the UDP sockets. Try it out and see if it really allows you to do the mark-based routing you want....
2006 Jun 01
1
compile cvs trunk
...Entering directory `/usr/src/tinc/src' gcc -g -O2 -DCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALSTATEDIR=\"/usr/local/var\" -g -O2 -o tincd conf.o connection.o edge.o event.o graph.o logger.o meta.o net.o net_packet.o net_setup.o net_socket.o netutl.o node.o process.o protocol.o protocol_auth.o protocol_edge.o protocol_misc.o protocol_key.o protocol_subnet.o route.o subnet.o tincd.o ../lib/libvpn.a -lcrypto -lz -llzo graph.o: In function `sssp_bfs':/usr/src/tinc/src/graph.c:278: undefined reference to `device' ... tincd.o...
2014 Nov 22
2
Tinc 1.0.24 build failed on OSX Mavericks
...ng error when tried to compile tinc-1.0.24: gcc -g -O2 -pie -L/opt/local/lib -o tincd avl_tree.o conf.o connection.o dropin.o dummy_device.o edge.o event.o fake-getaddrinfo.o fake-getnameinfo.o getopt.o getopt1.o graph.o list.o logger.o meta.o multicast_device.o net.o net_packet.o net_setup.o net_socket.o netutl.o node.o pidfile.o process.o protocol.o protocol_auth.o protocol_edge.o protocol_misc.o protocol_key.o protocol_subnet.o raw_socket_device.o route.o subnet.o tincd.o utils.o xmalloc.o bsd/device.o -lcrypto -lz -llzo2 clang: warning: argument unused during compilation: '-pie...
2003 Aug 04
1
OpenBSD 3.2 and Release 1
...tinc/src/device.h U tinc/src/edge.c U tinc/src/edge.h U tinc/src/event.c U tinc/src/event.h U tinc/src/graph.c U tinc/src/graph.h U tinc/src/logger.c U tinc/src/logger.h U tinc/src/meta.c U tinc/src/meta.h U tinc/src/net.c U tinc/src/net.h U tinc/src/net_packet.c U tinc/src/net_setup.c U tinc/src/net_socket.c U tinc/src/netutl.c U tinc/src/netutl.h U tinc/src/node.c U tinc/src/node.h U tinc/src/process.c U tinc/src/process.h U tinc/src/protocol.c U tinc/src/protocol.h U tinc/src/protocol_auth.c U tinc/src/protocol_edge.c U tinc/src/protocol_key.c U tinc/src/protocol_misc.c U tinc/src/protocol_subnet.c...