Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
d4478d5f
Commit
d4478d5f
authored
Dec 05, 1998
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More socket-open fixes
parent
2d37c454
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ifconfig.c
ifconfig.c
+2
-2
sockets.c
sockets.c
+1
-1
No files found.
ifconfig.c
View file @
d4478d5f
...
...
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
* Version: $Id: ifconfig.c,v 1.2
3 1998/12/01 20:48:4
1 philip Exp $
* Version: $Id: ifconfig.c,v 1.2
4 1998/12/05 10:33:5
1 philip Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
...
...
@@ -548,8 +548,8 @@ int main(int argc, char **argv)
/* XXX: should print the current setup if no args left, but only
for this family */
spp
++
;
addr_family
=
ap
->
af
;
}
addr_family
=
ap
->
af
;
if
(
sockets_open
(
addr_family
)
<
0
)
{
perror
(
"family socket"
);
...
...
sockets.c
View file @
d4478d5f
...
...
@@ -43,7 +43,7 @@ int sockets_open(int family)
continue
;
}
/* Check some /proc file first to not stress kmod */
if
(
!
force
&&
af
->
flag_file
)
{
if
(
!
f
amily
&&
!
f
orce
&&
af
->
flag_file
)
{
if
(
access
(
af
->
flag_file
,
R_OK
))
continue
;
}
...
...
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