*/
static IOCB commHalfClosedReader;
-static void comm_init_opened(const Comm::ConnectionPointer &conn, tos_t tos, nfmark_t nfmark, const char *note, struct addrinfo *AI);
+static void comm_init_opened(const Comm::ConnectionPointer &conn, const char *note, struct addrinfo *AI);
static int comm_apply_flags(int new_socket, Ip::Address &addr, int flags, struct addrinfo *AI);
#if USE_DELAY_POOLS
int flags,
const char *note)
{
- return comm_openex(sock_type, proto, addr, flags, 0, 0, note);
+ return comm_openex(sock_type, proto, addr, flags, note);
}
void
conn->flags |= COMM_DOBIND;
/* attempt native enabled port. */
- conn->fd = comm_openex(sock_type, proto, conn->local, conn->flags, 0, 0, note);
+ conn->fd = comm_openex(sock_type, proto, conn->local, conn->flags, note);
}
int
flags |= COMM_DOBIND;
/* attempt native enabled port. */
- sock = comm_openex(sock_type, proto, addr, flags, 0, 0, note);
+ sock = comm_openex(sock_type, proto, addr, flags, note);
return sock;
}
int proto,
Ip::Address &addr,
int flags,
- tos_t tos,
- nfmark_t nfmark,
const char *note)
{
int new_socket;
debugs(50, 3, "comm_openex: Opened socket " << conn << " : family=" << AI->ai_family << ", type=" << AI->ai_socktype << ", protocol=" << AI->ai_protocol );
- /* set TOS if needed */
- if (tos)
- Ip::Qos::setSockTos(conn, tos);
-
- /* set netfilter mark if needed */
- if (nfmark)
- Ip::Qos::setSockNfmark(conn, nfmark);
-
if ( Ip::EnableIpv6&IPV6_SPECIAL_SPLITSTACK && addr.isIPv6() )
comm_set_v6only(conn->fd, 1);
if ( Ip::EnableIpv6&IPV6_SPECIAL_V4MAPPING && addr.isIPv6() )
comm_set_v6only(conn->fd, 0);
- comm_init_opened(conn, tos, nfmark, note, AI);
+ comm_init_opened(conn, note, AI);
new_socket = comm_apply_flags(conn->fd, addr, flags, AI);
Ip::Address::FreeAddrInfo(AI);
/// update FD tables after a local or remote (IPC) comm_openex();
void
comm_init_opened(const Comm::ConnectionPointer &conn,
- tos_t tos,
- nfmark_t nfmark,
const char *note,
struct addrinfo *AI)
{
fde *F = &fd_table[conn->fd];
F->local_addr = conn->local;
- F->tosToServer = tos;
-
- F->nfmarkToServer = nfmark;
F->sock_family = AI->ai_family;
}
assert(Comm::IsConnOpen(conn));
assert(AI);
- comm_init_opened(conn, 0, 0, note, AI);
+ comm_init_opened(conn, note, AI);
if (!(conn->flags & COMM_NOCLOEXEC))
fd_table[conn->fd].flags.close_on_exec = true;