X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frconn.h;h=23976409ebaa31924490985a2b7bc9313b61ee92;hb=d58c5bc2d854ce601338d0785c8086d619a16135;hp=a6c2fa7f4a2c560381c7c3c18238d070d2966d21;hpb=2c360fbb2777fba6d35599e4b53287e2ecb26fa9;p=openvswitch diff --git a/lib/rconn.h b/lib/rconn.h index a6c2fa7f..23976409 100644 --- a/lib/rconn.h +++ b/lib/rconn.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,8 +37,9 @@ struct vconn; struct rconn_packet_counter; -struct rconn *rconn_create(int inactivity_probe_interval, int max_backoff); - +struct rconn *rconn_create(int inactivity_probe_interval, + int max_backoff, uint8_t dscp); +void rconn_set_dscp(struct rconn *rc, uint8_t dscp); void rconn_set_max_backoff(struct rconn *, int max_backoff); int rconn_get_max_backoff(const struct rconn *); void rconn_set_probe_interval(struct rconn *, int inactivity_probe_interval); @@ -76,6 +77,7 @@ ovs_be32 rconn_get_remote_ip(const struct rconn *); ovs_be16 rconn_get_remote_port(const struct rconn *); ovs_be32 rconn_get_local_ip(const struct rconn *); ovs_be16 rconn_get_local_port(const struct rconn *); +int rconn_get_version(const struct rconn *); const char *rconn_get_state(const struct rconn *); unsigned int rconn_get_attempted_connections(const struct rconn *);