Loading ChangeLog +2 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,8 @@ Changes in version 0.2.0.3-alpha - 2007-07-29 compatibility, ADDRMAP events only provide GMT expiry in an extended field. "GETINFO address-mappings" always does the right thing. - Use CRLF line endings properly in NS events. - Terminate multi-line control events properly. (Original patch from tup.) [Bugfix on 0.1.2.x-alpha] o Minor bugfixes (misc): - Choose perfectly fairly among routers when choosing by bandwidth and Loading doc/spec/control-spec.txt +4 −4 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ $Id$ Reply = SyncReply / AsyncReply SyncReply = *(MidReplyLine / DataReplyLine) EndReplyLine AsyncReply = *MidReplyLine EndReplyLine / DataReplyLine AsyncReply = *(MidReplyLine / DataReplyLine) EndReplyLine MidReplyLine = StatusCode "-" ReplyLine DataReplyLine = StatusCode "+" ReplyLine Data Loading Loading @@ -954,7 +954,7 @@ $Id$ The syntax is: "650" SP Severity SP ReplyText or "650+" Severity CRLF Data "650+" Severity CRLF Data 650 SP "OK" CRLF Severity = "DEBUG" / "INFO" / "NOTICE" / "WARN"/ "ERR" Loading Loading @@ -985,7 +985,7 @@ $Id$ Syntax: "650" "+" "AUTHDIR_NEWDESCS" CRLF Action CRLF Message CRLF Descriptor CRLF "." CRLF Descriptor CRLF "." CRLF "650" SP "OK" CRLF Action = "ACCEPTED" / "DROPPED" / "REJECTED" Message = Text Loading Loading @@ -1316,7 +1316,7 @@ $Id$ 4.1.12. Network status has changed Syntax: "650" "+" "NS" CRLF 1*NetworkStatus "." CRLF "650" "+" "NS" CRLF 1*NetworkStatus "." CRLF "650" SP "OK" CRLF [First added in 0.1.2.3-alpha] Loading src/or/control.c +6 −2 Original line number Diff line number Diff line Loading @@ -3146,7 +3146,8 @@ control_event_or_authdir_new_descriptor(const char *action, strlcpy(buf+strlen(firstline), esc, totallen); send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS, buf); send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS, "650 OK\r\n"); tor_free(esc); tor_free(buf); Loading Loading @@ -3178,6 +3179,9 @@ control_event_networkstatus_changed(smartlist_t *statuses) smartlist_free(strs); tor_free(s); send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS, esc); send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS, "650 OK\r\n"); tor_free(esc); return 0; } Loading Loading
ChangeLog +2 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,8 @@ Changes in version 0.2.0.3-alpha - 2007-07-29 compatibility, ADDRMAP events only provide GMT expiry in an extended field. "GETINFO address-mappings" always does the right thing. - Use CRLF line endings properly in NS events. - Terminate multi-line control events properly. (Original patch from tup.) [Bugfix on 0.1.2.x-alpha] o Minor bugfixes (misc): - Choose perfectly fairly among routers when choosing by bandwidth and Loading
doc/spec/control-spec.txt +4 −4 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ $Id$ Reply = SyncReply / AsyncReply SyncReply = *(MidReplyLine / DataReplyLine) EndReplyLine AsyncReply = *MidReplyLine EndReplyLine / DataReplyLine AsyncReply = *(MidReplyLine / DataReplyLine) EndReplyLine MidReplyLine = StatusCode "-" ReplyLine DataReplyLine = StatusCode "+" ReplyLine Data Loading Loading @@ -954,7 +954,7 @@ $Id$ The syntax is: "650" SP Severity SP ReplyText or "650+" Severity CRLF Data "650+" Severity CRLF Data 650 SP "OK" CRLF Severity = "DEBUG" / "INFO" / "NOTICE" / "WARN"/ "ERR" Loading Loading @@ -985,7 +985,7 @@ $Id$ Syntax: "650" "+" "AUTHDIR_NEWDESCS" CRLF Action CRLF Message CRLF Descriptor CRLF "." CRLF Descriptor CRLF "." CRLF "650" SP "OK" CRLF Action = "ACCEPTED" / "DROPPED" / "REJECTED" Message = Text Loading Loading @@ -1316,7 +1316,7 @@ $Id$ 4.1.12. Network status has changed Syntax: "650" "+" "NS" CRLF 1*NetworkStatus "." CRLF "650" "+" "NS" CRLF 1*NetworkStatus "." CRLF "650" SP "OK" CRLF [First added in 0.1.2.3-alpha] Loading
src/or/control.c +6 −2 Original line number Diff line number Diff line Loading @@ -3146,7 +3146,8 @@ control_event_or_authdir_new_descriptor(const char *action, strlcpy(buf+strlen(firstline), esc, totallen); send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS, buf); send_control_event_string(EVENT_AUTHDIR_NEWDESCS, ALL_NAMES|ALL_FORMATS, "650 OK\r\n"); tor_free(esc); tor_free(buf); Loading Loading @@ -3178,6 +3179,9 @@ control_event_networkstatus_changed(smartlist_t *statuses) smartlist_free(strs); tor_free(s); send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS, esc); send_control_event_string(EVENT_NS, ALL_NAMES|ALL_FORMATS, "650 OK\r\n"); tor_free(esc); return 0; } Loading