[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Export END_CIRC_REASON_* to controller?



Thus spake Mike Perry (mikepery@xxxxxxxxxx):

> Ok, I'm on it. You're right it's not that bad at all. Will test it for
> a bit w/ the scanner then post.
> 
> Should I patch the control-spec.txt as well?

Stupid question. I think you guys actually say to submit changes in
patch form for the spec first somewhere. Spec diff is attached.



-- 
Mike Perry
Mad Computer Scientist
fscked.org evil labs
Index: control-spec.txt
===================================================================
--- control-spec.txt	(revision 8642)
+++ control-spec.txt	(working copy)
@@ -751,7 +751,8 @@
 
    The syntax is:
 
-     "650" SP "CIRC" SP CircuitID SP CircStatus [SP Path]
+     "650" SP "CIRC" SP CircuitID SP CircStatus [SP Path] 
+          [SP "REASON" SP Reason] CRLF
 
       CircStatus =
                "LAUNCHED" / ; circuit ID assigned to new circuit
@@ -762,9 +763,15 @@
 
       Path = ServerID *("," ServerID)
 
+      Reason = "NONE" / "TORCONTROL" / "INTERNAL" / "REQUESTED" / 
+               "HIBERNATING" / "RESOURCELIMIT" / "CONNECTFAILED" /
+               "OR_IDENTITY" / "OR_CONN_CLOSED"
+
    The path is provided only when the circuit has been extended at least one
    hop.
 
+   Reason is provided only for FAILED and CLOSED events.
+
 4.1.2. Stream status changed
 
     The syntax is: