From: Ben Pfaff <blp@nicira.com>
Date: Mon, 9 Mar 2009 20:58:01 +0000 (-0700)
Subject: secchan: Add comments.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7b8ad9981bd06d9c2070ff8d35ac9d785a1d0f;p=openvswitch

secchan: Add comments.
---

diff --git a/secchan/ofproto.c b/secchan/ofproto.c
index 6f466666..fa6b11a5 100644
--- a/secchan/ofproto.c
+++ b/secchan/ofproto.c
@@ -96,14 +96,14 @@ static void xlate_actions(const union ofp_action *in, size_t n_in,
 struct rule {
     struct cls_rule cr;
 
-    uint16_t idle_timeout;
-    uint16_t hard_timeout;
-    long long int used;
-    long long int created;
+    uint16_t idle_timeout;      /* In seconds from time of last use. */
+    uint16_t hard_timeout;      /* In seconds from time of creation. */
+    long long int used;         /* Last-used time (0 if never used). */
+    long long int created;      /* Creation time. */
     uint64_t packet_count;      /* Packets from *expired* subrules. */
     uint64_t byte_count;        /* Bytes from *expired* subrules. */
-    uint8_t tcp_flags;
-    uint8_t ip_tos;
+    uint8_t tcp_flags;          /* Bitwise-OR of all TCP flags seen. */
+    uint8_t ip_tos;             /* Last-seen IP type-of-service. */
 
     struct rule *super;
     struct list list;