aboutsummaryrefslogtreecommitdiff
path: root/lib/stream-tcp.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2012-09-27 11:18:16 +0900
committerBen Pfaff <blp@nicira.com>2012-09-26 21:24:19 -0700
commitf89b7ce502441c9b71ac469846049ecacabcd888 (patch)
tree12b93e1d2dd4dd6b8cae01661b4c1759fb17a543 /lib/stream-tcp.c
parent6b9c1eab52a924fa37b024236abfc499ad9fd6ef (diff)
pstream: Add set_dscp method.
Introduce set_dscp method to pstream. This will be used by dynamic dscp change of listening socket. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/stream-tcp.c')
-rw-r--r--lib/stream-tcp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stream-tcp.c b/lib/stream-tcp.c
index 97492937..05601e19 100644
--- a/lib/stream-tcp.c
+++ b/lib/stream-tcp.c
@@ -117,7 +117,8 @@ ptcp_open(const char *name OVS_UNUSED, char *suffix, struct pstream **pstreamp,
sprintf(bound_name, "ptcp:%"PRIu16":"IP_FMT,
ntohs(sin.sin_port), IP_ARGS(&sin.sin_addr.s_addr));
- return new_fd_pstream(bound_name, fd, ptcp_accept, NULL, pstreamp);
+ return new_fd_pstream(bound_name, fd, ptcp_accept, set_dscp, NULL,
+ pstreamp);
}
static int
@@ -142,6 +143,7 @@ const struct pstream_class ptcp_pstream_class = {
ptcp_open,
NULL,
NULL,
- NULL
+ NULL,
+ NULL,
};