aboutsummaryrefslogtreecommitdiff
path: root/lib/mac-learning.h
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2013-05-16 15:17:10 -0700
committerBen Pfaff <blp@nicira.com>2013-05-16 15:24:55 -0700
commit63a10d0e099fe8eb6052fadf6b80a0ab208a6381 (patch)
treee9c298b4f28e380b5592934e0b9ab1857e9808f8 /lib/mac-learning.h
parent94a538422d4b05449097e5ad07ac25b05429f1fe (diff)
lib/mac-learning.h: Change one variable's type and name
This commit changes variable "int i" of "union port" of "struct mac_entry" to "uint16_t ofp_port", since it is used to store the OpenFlow port number. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/mac-learning.h')
-rw-r--r--lib/mac-learning.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mac-learning.h b/lib/mac-learning.h
index 284e7f63..666b00f4 100644
--- a/lib/mac-learning.h
+++ b/lib/mac-learning.h
@@ -49,7 +49,7 @@ struct mac_entry {
/* Learned port. */
union {
void *p;
- int i;
+ uint16_t ofp_port;
} port;
};