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
3eb2013b
Commit
3eb2013b
authored
Dec 02, 2007
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more backoff
parent
8ccfb33e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rarp.c
rarp.c
+2
-2
No files found.
rarp.c
View file @
3eb2013b
...
...
@@ -3,7 +3,7 @@
* that maintains the kernel's RARP cache. It is derived
* from Fred N. van Kempen's arp command.
*
* Version: $Id: rarp.c,v 1.
8 2007/12/01 19:36:55
ecki Exp $
* Version: $Id: rarp.c,v 1.
9 2007/12/02 02:19:52
ecki Exp $
*
* Usage: rarp -d hostname Delete entry
* rarp -s hostname ethernet_address Add entry
...
...
@@ -125,7 +125,7 @@ static int rarp_file(int fd, const char *name)
FILE
*
fp
;
struct
hostent
*
hp
;
if
((
fp
=
fopen
(
name
))
==
NULL
)
{
if
((
fp
=
fopen
(
name
,
"r"
))
==
NULL
)
{
fprintf
(
stderr
,
_
(
"rarp: cannot open file %s:%s.
\n
"
),
name
,
strerror
(
errno
));
return
-
1
;
}
...
...
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