Displaying 3 results from an estimated 3 matches for "debug_protocol".
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
...sizeof(node_id_t)))
+ n = from;
+ else
+ goto skip_harder;
+ }
}
- }
- if(!n) {
- pkt.offset = 0;
- n = try_harder(&addr, &pkt);
- }
+ if(!n) {
+ pkt[i].offset = 0;
+ n = try_harder(&addr[i], &pkt[i]);
+ }
-skip_harder:
- if(!n) {
- if(debug_level >= DEBUG_PROTOCOL) {
- hostname = sockaddr2hostname(&addr);
- logger(DEBUG_PROTOCOL, LOG_WARNING, "Received UDP packet from unknown source %s", hostname);
- free(hostname);
+ skip_harder:
+ if(!n) {
+ if(debug_level >= DEBUG_PROTOCOL) {
+ hostname = sockaddr2hostname(&addr[i]);
+...
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
...r(&addr, &pkt);
> - }
> + if(!n) {
> + pkt[i].offset = 0;
> + n = try_harder(&addr[i], &pkt[i]);
> + }
>
> -skip_harder:
> - if(!n) {
> - if(debug_level >= DEBUG_PROTOCOL) {
> - hostname = sockaddr2hostname(&addr);
> - logger(DEBUG_PROTOCOL, LOG_WARNING, "Received UDP packet from unknown source %s", hostname);
> - free(hostname);
> + skip_harder:
> + if...
2010 Sep 20
0
No subject
...--- a/src/logger.h
+++ b/src/logger.h
@@ -7,11 +7,11 @@
DEBUG_CONNECTIONS =3D 1, /* Show (dis)connects of other tinc daemons =
via TCP */
DEBUG_ERROR =3D 2, /* Show error messages received from other hosts =
*/
DEBUG_STATUS =3D 2, /* Show status messages received from other =
hosts */
- DEBUG_PROTOCOL =3D 3, /* Show the requests that are sent/received */
- DEBUG_META =3D 4, /* Show contents of every request that is =
sent/received */
- DEBUG_TRAFFIC =3D 5, /* Show network traffic information */
- DEBUG_PACKET =3D 6, /* Show contents of each packet that is being =
sent/received */
- DEBU...