X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/f40cd7f1993f1afb3e24986773b14afd7d24555d..cc1bff4e61c615fdd155a8d82ea9c737f994c4d4:/mon/tripemon.in diff --git a/mon/tripemon.in b/mon/tripemon.in index 6b7076b5..1e62f03e 100644 --- a/mon/tripemon.in +++ b/mon/tripemon.in @@ -1066,7 +1066,7 @@ class AddPeerDialog (MyDialog): 5)) me.l_tunnel = table.labelled('Tunnel', combo_box_text(), newlinep = True, width = 3) - me.tuns = conn.tunnels() + me.tuns = ['(Default)'] + conn.tunnels() for t in me.tuns: me.l_tunnel.append_text(t) me.l_tunnel.set_active(0) @@ -1082,6 +1082,9 @@ class AddPeerDialog (MyDialog): tickybox_sensitivity(me.c_keepalive, me.e_keepalive) table.pack(me.e_keepalive, width = 3) + me.c_cork = G.CheckButton('Cork') + table.pack(me.c_cork, newlinep = True, width = 4, xopt = G.FILL) + me.c_mobile = G.CheckButton('Mobile') table.pack(me.c_mobile, newlinep = True, width = 4, xopt = G.FILL) @@ -1111,6 +1114,7 @@ class AddPeerDialog (MyDialog): keepalive = (me.c_keepalive.get_active() and me.e_keepalive.get_text() or None), tunnel = t and me.tuns[t] or None, + cork = me.c_cork.get_active() or None, mobile = me.c_mobile.get_active() or None, key = (me.c_peerkey.get_active() and me.e_peerkey.get_text() or None), @@ -1230,7 +1234,7 @@ def xlate_time(t): return '%04d:%02d:%02d %02d:%02d:%02d (%.1f %s ago)' % \ (YY, MM, DD, hh, mm, ss, ago, unit) def xlate_bytes(b): - """Translate a number of bytes into something a human might want to read.""" + """Translate a raw byte count into something a human might want to read.""" suff = 'B' b = int(b) for s in 'KMG': @@ -1255,18 +1259,21 @@ statsxlate = \ ## How to lay out the stats dialog. Format is (LABEL, FORMAT): LABEL is ## the label to give the entry box; FORMAT is the format string to write into ## the entry. -statslayout = \ - [('Start time', '%(start-time)s'), - ('Private key', '%(current-key)s'), - ('Diffie-Hellman group', +cryptolayout = \ + [('Diffie-Hellman group', '%(kx-group)s ' '(%(kx-group-order-bits)s-bit order, ' '%(kx-group-elt-bits)s-bit elements)'), ('Cipher', '%(cipher)s (%(cipher-keysz)s-bit key, %(cipher-blksz)s-bit block)'), ('Mac', '%(mac)s (%(mac-keysz)s-bit key, %(mac-tagsz)s-bit tag)'), - ('Hash', '%(hash)s (%(hash-sz)s-bit output)'), - ('Last key-exchange', '%(last-keyexch-time)s'), + ('Hash', '%(hash)s (%(hash-sz)s-bit output)')] + +statslayout = \ + [('Start time', '%(start-time)s'), + ('Private key', '%(current-key)s')] + \ + cryptolayout + \ + [('Last key-exchange', '%(last-keyexch-time)s'), ('Last packet', '%(last-packet-time)s'), ('Packets in/out', '%(packets-in)s (%(bytes-in)s) / %(packets-out)s (%(bytes-out)s)'),