X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=secchan%2Fnetflow.c;h=7dd2e043136b8e80d4079fc16cc3a7c36ba3c694;hb=372179d4f4a1dc6113bc4ea60cee76cb354e22f4;hp=e867c0ebc5f210fdd1f7d3f33d1b8752e7323d1e;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/secchan/netflow.c b/secchan/netflow.c index e867c0eb..7dd2e043 100644 --- a/secchan/netflow.c +++ b/secchan/netflow.c @@ -107,7 +107,7 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); static int open_collector(char *dst) { - char *save_ptr; + char *save_ptr = NULL; const char *host_name; const char *port_string; struct sockaddr_in sin; @@ -197,7 +197,6 @@ netflow_expire(struct netflow *nf, const struct ofexpired *expired) uint16_t iface = (nf->engine_id & 0x7f) << 9; nf_rec->input = htons(iface | (expired->flow.in_port & 0x1ff)); nf_rec->output = htons(iface); - printf("input: %x\n", ntohs(nf_rec->input)); } else { nf_rec->input = htons(expired->flow.in_port); nf_rec->output = htons(0);