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 */
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 */
}
}
-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 */
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 */
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 */
}
}
-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 */
}
}
-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 */
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 */
}
}
-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 */