secchan: Make hook_class structures const.
authorBen Pfaff <blp@nicira.com>
Wed, 28 Jan 2009 22:02:24 +0000 (14:02 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 2 Mar 2009 20:51:59 +0000 (12:51 -0800)
secchan/executer.c
secchan/fail-open.c
secchan/flow-end.c
secchan/in-band.c
secchan/port-watcher.c
secchan/ratelimit.c
secchan/snat.c
secchan/status.c
secchan/stp-secchan.c

index fb26ecd3f8fc2042eae14c2086f289986eac29a2..bb6fea8df19e047e470bc92bada495f7b91f43bb 100644 (file)
@@ -472,7 +472,7 @@ sigchld_handler(int signr UNUSED)
     write(child_fd, "", 1);
 }
 
-static struct hook_class executer_hook_class = {
+static const struct hook_class executer_hook_class = {
     NULL,                       /* local_packet_cb */
     executer_remote_packet_cb,  /* remote_packet_cb */
     executer_periodic_cb,       /* periodic_cb */
index 272952772f6e90f6b9430596660e69d0912727ef..a4d0d83db701854d4a00a8fb1e499c42fb0f552e 100644 (file)
@@ -131,7 +131,7 @@ fail_open_status_cb(struct status_reply *sr, void *fail_open_)
     status_reply_put(sr, "max-idle=%d", s->max_idle);
 }
 
-static struct hook_class fail_open_hook_class = {
+static const struct hook_class fail_open_hook_class = {
     fail_open_local_packet_cb,  /* local_packet_cb */
     NULL,                       /* remote_packet_cb */
     fail_open_periodic_cb,      /* periodic_cb */
index dd8a9c086d398aa5369739925fc7b8da627f9cf1..d77cbda7c4f18e7499f9ad9f5ef3f4921a57da11 100644 (file)
@@ -348,7 +348,7 @@ flow_end_reconfigure_cb(void *flow_end_)
     }
 }
 
-static struct hook_class flow_end_hook_class = {
+static const struct hook_class flow_end_hook_class = {
     flow_end_local_packet_cb,   /* local_packet_cb */
     flow_end_remote_packet_cb,  /* remote_packet_cb */
     NULL,                       /* periodic_cb */
index 0ff29d1e84fe49db0930269e21eeaf6a0feff1d5..5ea06e0799f0b6f64e58da505dcd814f5ab181da 100644 (file)
@@ -304,7 +304,7 @@ in_band_wait_cb(void *in_band_)
     mac_learning_wait(in_band->ml);
 }
 
-static struct hook_class in_band_hook_class = {
+static const struct hook_class in_band_hook_class = {
     in_band_local_packet_cb,    /* local_packet_cb */
     NULL,                       /* remote_packet_cb */
     in_band_periodic_cb,        /* periodic_cb */
index feebd8974684ba02d56033e2e1832fd2b16c7a34..d5b19cce8e4cc72e6a6a0c2852f9e3722c56dd4e 100644 (file)
@@ -588,7 +588,7 @@ port_watcher_is_ready(const struct port_watcher *pw)
     return pw->got_feature_reply;
 }
 
-static struct hook_class port_watcher_hook_class = { 
+static const struct hook_class port_watcher_hook_class = { 
     port_watcher_local_packet_cb,                        /* local_packet_cb */
     port_watcher_remote_packet_cb,                       /* remote_packet_cb */
     port_watcher_periodic_cb,                            /* periodic_cb */
index f03a28660ed8f7dfb3139642cbb221cbdaf49375..769889c060622f4958e4af926d2d05e562672673 100644 (file)
@@ -234,7 +234,7 @@ rate_limit_wait_cb(void *rl_)
     }
 }
 
-static struct hook_class rate_limit_hook_class = {
+static const struct hook_class rate_limit_hook_class = {
     rate_limit_local_packet_cb, /* local_packet_cb */
     NULL,                       /* remote_packet_cb */
     rate_limit_periodic_cb,     /* periodic_cb */
index 310a9069ec0639ea49d08124fa2e8b7a18f84307..31fbe26ec0d45bba3c220a6192a1719650e1c375 100644 (file)
@@ -265,7 +265,7 @@ snat_port_changed_cb(uint16_t port_no UNUSED,
     }
 }
 
-static struct hook_class snat_hook_class = {
+static const struct hook_class snat_hook_class = {
     NULL,                       /* local_packet_cb */
     snat_remote_packet_cb,      /* remote_packet_cb */
     NULL,                       /* periodic_cb */
index c3e95aff06d4c90e77d61196a6883f515b5dbdd7..ff0c6f4f712e6d7e76cca34a0df93b6a1561f8a7 100644 (file)
@@ -165,7 +165,7 @@ switch_status_cb(struct status_reply *sr, void *ss_)
     status_reply_put(sr, "pid=%ld", (long int) getpid());
 }
 
-static struct hook_class switch_status_hook_class = {
+static const struct hook_class switch_status_hook_class = {
     NULL,                           /* local_packet_cb */
     switch_status_remote_packet_cb, /* remote_packet_cb */
     NULL,                           /* periodic_cb */
index 3e8a7d772650022a538f18c60a9d99a24245fd00..c8e4ca711a332dfb2c911c8658baaa551ac7fb69 100644 (file)
@@ -263,7 +263,7 @@ stp_local_port_changed_cb(const struct ofp_phy_port *port, void *stp_)
     }
 }
 
-static struct hook_class stp_hook_class = {
+static const struct hook_class stp_hook_class = {
     stp_local_packet_cb,        /* local_packet_cb */
     NULL,                       /* remote_packet_cb */
     stp_periodic_cb,            /* periodic_cb */