diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-11 14:58:02 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-12 13:55:47 -0800 |
commit | 30012c72af2e0984fb58e386a4e2a5f6e3b6631a (patch) | |
tree | eb348cd65d88ef84fa1bf0dc39d795db512493bc /lib/vconn.h | |
parent | 88a20d6e4c8a44bec62e288748620e69d97a729a (diff) |
vconn: New functions vconn_verify_name(), pvconn_verify_name().
These are useful for checking that the syntax of a name is valid, so that
completely invalid names can be rejected at program startup time.
CC: Jean Tourrilhes <jt@hpl.hp.com>
Diffstat (limited to 'lib/vconn.h')
-rw-r--r-- | lib/vconn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vconn.h b/lib/vconn.h index 0c13744c..e2a35772 100644 --- a/lib/vconn.h +++ b/lib/vconn.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ struct vconn; void vconn_usage(bool active, bool passive, bool bootstrap); /* Active vconns: virtual connections to OpenFlow devices. */ +int vconn_verify_name(const char *name); int vconn_open(const char *name, int min_version, struct vconn **); void vconn_close(struct vconn *); const char *vconn_get_name(const struct vconn *); @@ -63,6 +64,7 @@ void vconn_recv_wait(struct vconn *); void vconn_send_wait(struct vconn *); /* Passive vconns: virtual listeners for incoming OpenFlow connections. */ +int pvconn_verify_name(const char *name); int pvconn_open(const char *name, struct pvconn **); const char *pvconn_get_name(const struct pvconn *); void pvconn_close(struct pvconn *); |