ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
cinfo.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS TCP/IP protocol driver
4
* FILE: tcpip/cinfo.c
5
* PURPOSE: Per-socket connection information.
6
* PROGRAMMER: Jérôme Gardou
7
*/
8
9
#include "precomp.h"
10
11
TDI_STATUS
SetConnectionInfo
(
TDIObjectID
*
ID
,
12
PCONNECTION_ENDPOINT
Connection,
13
PVOID
Buffer
,
14
UINT
BufferSize
)
15
{
16
ASSERT
(
ID
->toi_type ==
INFO_TYPE_CONNECTION
);
17
switch
(
ID
->toi_id)
18
{
19
case
TCP_SOCKET_NODELAY
:
20
{
21
BOOLEAN
Set
;
22
if
(
BufferSize
<
sizeof
(
BOOLEAN
))
23
return
TDI_INVALID_PARAMETER
;
24
Set
= *(
BOOLEAN
*)
Buffer
;
25
return
TCPSetNoDelay
(Connection,
Set
);
26
}
27
default
:
28
DbgPrint
(
"TCPIP: Unknown connection info ID: %u.\n"
,
ID
->toi_id);
29
}
30
31
return
TDI_INVALID_PARAMETER
;
32
}
BOOLEAN
unsigned char BOOLEAN
Definition:
ProcessorBind.h:185
SetConnectionInfo
TDI_STATUS SetConnectionInfo(TDIObjectID *ID, PCONNECTION_ENDPOINT Connection, PVOID Buffer, UINT BufferSize)
Definition:
cinfo.c:11
Buffer
Definition:
bufpool.h:45
DbgPrint
#define DbgPrint
Definition:
hal.h:12
TCPSetNoDelay
NTSTATUS TCPSetNoDelay(PCONNECTION_ENDPOINT Connection, BOOLEAN Set)
Definition:
tcp.c:734
void
Definition:
nsiface.idl:2307
ASSERT
#define ASSERT(a)
Definition:
mode.c:44
UINT
unsigned int UINT
Definition:
ndis.h:50
Set
static BOOL Set
Definition:
pageheap.c:10
ID
#define ID
Definition:
ruserpass.c:36
_CONNECTION_ENDPOINT
Definition:
titypes.h:240
_TDIObjectID
Definition:
tdiinfo.h:73
TCP_SOCKET_NODELAY
#define TCP_SOCKET_NODELAY
Definition:
tcpioctl.h:104
TDI_STATUS
LONG TDI_STATUS
Definition:
tdi.h:36
INFO_TYPE_CONNECTION
#define INFO_TYPE_CONNECTION
Definition:
tdiinfo.h:71
TDI_INVALID_PARAMETER
#define TDI_INVALID_PARAMETER
Definition:
tdistat.h:52
BufferSize
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition:
wdfmemory.h:254
drivers
network
tcpip
tcpip
cinfo.c
Generated on Wed Nov 27 2024 06:05:56 for ReactOS by
1.9.6