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
75e1c0cd
Commit
75e1c0cd
authored
Apr 29, 2003
by
Mike Hibler
Browse files
correctly set length of IFCONF ioctl
parent
87fef2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pcapper/pcapper.c
View file @
75e1c0cd
...
...
@@ -445,7 +445,7 @@ int main (int argc, char **argv) {
* are up in response to SIOCGIFCONF
*/
ifc
.
ifc_buf
=
malloc
(
MAX_INTERFACES
*
100
*
sizeof
(
struct
ifreq
));
ifc
.
ifc_len
=
MAX_INTERFACES
*
100
;
ifc
.
ifc_len
=
MAX_INTERFACES
*
100
*
sizeof
(
struct
ifreq
)
;
if
(
ioctl
(
sock
,
SIOCGIFCONF
,
&
ifc
)
<
0
)
{
perror
(
"SIOCGIFCONF"
);
exit
(
1
);
...
...
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