Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c5aec020
Commit
c5aec020
authored
Feb 16, 2007
by
Robert Ricci
Browse files
Fix a bug with accept() sockets that was causing 'Connect' to get
printed twice.
parent
9a613dd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/libnetmon/libnetmon.c
View file @
c5aec020
...
...
@@ -1296,7 +1296,6 @@ int accept(int s, struct sockaddr * addr,
// XXX Accessors
monitorFDs
[
s
].
connected
=
1
;
monitorFDs
[
s
].
local_port
=
ntohs
(((
struct
sockaddr_in
*
)
addr
)
->
sin_port
);
printlog
(
LOG_CONNECTED
,
rv
);
printlog
(
LOG_LOCALPORT
,
rv
,
"%i"
,
monitorFDs
[
s
].
local_port
);
}
...
...
Write
Preview
Supports
Markdown
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