summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2007-01-18 04:28:55 +0100
committerMichael Brown2007-01-18 04:28:55 +0100
commit5a807994d84bd494bae38f48d6b71d3cdae22aff (patch)
tree57f2e2bc497bd763f5ccedb99bd00b669260c7a4 /src/include/gpxe
parentEnsure that struct sockaddr is long enough... (diff)
downloadipxe-5a807994d84bd494bae38f48d6b71d3cdae22aff.tar.gz
ipxe-5a807994d84bd494bae38f48d6b71d3cdae22aff.tar.xz
ipxe-5a807994d84bd494bae38f48d6b71d3cdae22aff.zip
Add utility function to parse port from URI
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/uri.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/gpxe/uri.h b/src/include/gpxe/uri.h
index 24f92c67d..b8c7e098a 100644
--- a/src/include/gpxe/uri.h
+++ b/src/include/gpxe/uri.h
@@ -112,5 +112,6 @@ static inline void free_uri ( struct uri *uri ) {
}
extern struct uri * parse_uri ( const char *uri_string );
+unsigned int uri_port ( struct uri *uri, unsigned int default_port );
#endif /* _GPXE_URI_H */