projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git]
/
ircd
/
listener.c
diff --git
a/ircd/listener.c
b/ircd/listener.c
index fab23846c82ec68d7143fbfe812ac9329b54247e..921678eabcf86b4cde40f47c58b96fe010794d01 100644
(file)
--- a/
ircd/listener.c
+++ b/
ircd/listener.c
@@
-22,6
+22,7
@@
#include "client.h"
#include "ircd.h"
#include "ircd_alloc.h"
#include "client.h"
#include "ircd.h"
#include "ircd_alloc.h"
+#include "ircd_features.h"
#include "ircd_osdep.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "ircd_osdep.h"
#include "ircd_reply.h"
#include "ircd_string.h"
@@
-47,9
+48,6
@@
#define INADDR_NONE ((unsigned int) 0xffffffff)
#endif
#define INADDR_NONE ((unsigned int) 0xffffffff)
#endif
-int tos_server = 0x08; // Low delay
-int tos_client = 0x08; // Low delay
-
struct Listener* ListenerPollList = 0;
static struct Listener* make_listener(int port, struct in_addr addr)
struct Listener* ListenerPollList = 0;
static struct Listener* make_listener(int port, struct in_addr addr)
@@
-219,7
+217,7
@@
static int inetport(struct Listener* listener)
/*
* Set the TOS bits - this is nonfatal if it doesn't stick.
*/
/*
* Set the TOS bits - this is nonfatal if it doesn't stick.
*/
- if (!os_set_tos(fd,
(listener->server) ? tos_server : tos_client
)) {
+ if (!os_set_tos(fd,
feature_int((listener->server)?FEAT_TOS_SERVER : FEAT_TOS_CLIENT)
)) {
report_error(TOS_ERROR_MSG, get_listener_name(listener), errno);
}
listener->fd = fd;
report_error(TOS_ERROR_MSG, get_listener_name(listener), errno);
}
listener->fd = fd;