Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6dae7c2d
Commit
6dae7c2d
authored
May 13, 2003
by
Juan Lang
Committed by
Alexandre Julliard
May 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed wsock32 to use the new iphlpapi for interface and route
enumeration in WsControl.
parent
090f5974
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
Makefile.in
dlls/wsock32/Makefile.in
+1
-1
socket.c
dlls/wsock32/socket.c
+0
-0
wscontrol.h
dlls/wsock32/wscontrol.h
+0
-24
No files found.
dlls/wsock32/Makefile.in
View file @
6dae7c2d
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
wsock32.dll
IMPORTS
=
ws2_32 kernel32
IMPORTS
=
ws2_32
iphlpapi
kernel32
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
...
...
dlls/wsock32/socket.c
View file @
6dae7c2d
This diff is collapsed.
Click to expand it.
dlls/wsock32/wscontrol.h
View file @
6dae7c2d
...
...
@@ -31,30 +31,6 @@
typedef
unsigned
char
uchar
;
/* This doesn't seem to be in any standard headers */
#define WSCTL_SUCCESS 0
#define PROCFS_NETDEV_FILE "/proc/net/dev"
/* Points to the file in the /proc fs
that lists the network devices.
Do we need an #ifdef LINUX for this? */
#define PROCFS_ROUTE_FILE "/proc/net/route"
/* Points to the file in the /proc fs
that contains the routing table */
#define WSCNTL_COUNT_INTERFACES 1
#define WSCNTL_COUNT_ROUTES 2
/* struct contains a routing table entry */
typedef
struct
wscntl_routeentry
{
unsigned
long
wre_intf
;
unsigned
long
wre_dest
;
unsigned
long
wre_gw
;
unsigned
long
wre_mask
;
unsigned
long
wre_metric
;
}
wscntl_routeentry
;
/* WsControl Helper Functions */
int
WSCNTL_GetEntryCount
(
const
int
);
/* Obtains the number of network interfaces/routes */
int
WSCNTL_GetInterfaceName
(
int
,
char
*
);
/* Obtains the name of an interface */
int
WSCNTL_GetTransRecvStat
(
int
intNumber
,
unsigned
long
*
transBytes
,
unsigned
long
*
recvBytes
);
/* Obtains bytes recv'd/trans by interface */
int
WSCNTL_GetRouteTable
(
int
numRoutes
,
wscntl_routeentry
*
routeTable
);
/* get the routing for the interface intf */
/*
* TCP/IP action codes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment