… | |
… | |
848 | { |
848 | { |
849 | if (ictx && octx) |
849 | if (ictx && octx) |
850 | send_data_packet (pkt); |
850 | send_data_packet (pkt); |
851 | else |
851 | else |
852 | { |
852 | { |
853 | if (!broadcast)//DDDD |
853 | if (!broadcast) |
854 | data_queue.put (new tap_packet (*pkt)); |
854 | data_queue.put (new tap_packet (*pkt)); |
855 | |
855 | |
856 | establish_connection (); |
856 | establish_connection (); |
857 | } |
857 | } |
858 | } |
858 | } |
… | |
… | |
1063 | { |
1063 | { |
1064 | vpn->tap->send (d); |
1064 | vpn->tap->send (d); |
1065 | |
1065 | |
1066 | if (si != rsi) |
1066 | if (si != rsi) |
1067 | { |
1067 | { |
1068 | // fast re-sync on connection changes, useful especially for tcp/ip |
1068 | // fast re-sync on source address changes, useful especially for tcp/ip |
1069 | si = rsi; |
1069 | si = rsi; |
1070 | |
1070 | |
1071 | slog (L_INFO, _("%s(%s): socket address changed to %s"), |
1071 | slog (L_INFO, _("%s(%s): socket address changed to %s"), |
1072 | conf->nodename, (const char *)si, (const char *)rsi); |
1072 | conf->nodename, (const char *)si, (const char *)rsi); |
1073 | } |
1073 | } |