projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166c7ec
)
net: Change makesock_addrinfo() to set given flowopts before SO_REUSEADDR.
author
Andre Noll
<maan@systemlinux.org>
Sun, 8 Sep 2013 04:33:29 +0000
(
04:33
+0000)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 1 Jan 2014 17:40:15 +0000
(17:40 +0000)
Should not matter but allows to combine the code that follows.
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index 5e4f13164c26fce85bcbeea55494a0e48244e1ea..a95f145a78ac111416201aebe4b1f628e2a73544 100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-440,6
+440,7
@@
static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai,
if (ret < 0)
goto get_next_dst;
sockfd = ret;
+ flowopt_setopts(sockfd, fo);
/*
* Reuse the address on passive sockets to avoid failure on
* restart (protocols using listen()) and when creating
@@
-453,7
+454,6
@@
static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai,
para_strerror(-ret));
break;
}
- flowopt_setopts(sockfd, fo);
if (passive) {
if (bind(sockfd, src->ai_addr, src->ai_addrlen) < 0) {