From: Isaku Yamahata Date: Wed, 26 Sep 2012 07:12:06 +0000 (+0900) Subject: socket-util: export set_dscp() X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b9c1eab52a924fa37b024236abfc499ad9fd6ef;p=openvswitch socket-util: export set_dscp() It will be used later for dynamic dscp change to listening socket. Signed-off-by: Isaku Yamahata Signed-off-by: Ben Pfaff --- diff --git a/lib/socket-util.c b/lib/socket-util.c index 7c40ab83..e32c03dd 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -92,7 +92,7 @@ xset_nonblocking(int fd) } } -static int +int set_dscp(int fd, uint8_t dscp) { int val; diff --git a/lib/socket-util.h b/lib/socket-util.h index a0e7970a..bacb236f 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -27,6 +27,7 @@ int set_nonblocking(int fd); void xset_nonblocking(int fd); +int set_dscp(int fd, uint8_t dscp); int get_max_fds(void);