2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

socket-util: Make inet_open_passive() pass back the bound address.

This feature is useful in an upcoming commit.
This commit is contained in:
Ben Pfaff
2010-01-07 15:00:47 -08:00
parent e1bd3bee5c
commit 36775dad35
4 changed files with 26 additions and 6 deletions

View File

@@ -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.
@@ -721,7 +721,7 @@ pssl_open(const char *name, char *suffix, struct pstream **pstreamp)
return retval;
}
fd = inet_open_passive(SOCK_STREAM, suffix, OFP_SSL_PORT);
fd = inet_open_passive(SOCK_STREAM, suffix, OFP_SSL_PORT, NULL);
if (fd < 0) {
return -fd;
}