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
86cdbae6
Commit
86cdbae6
authored
May 08, 1998
by
Jes Sorensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't try to delete public ARP entries if already succeeded in deleting a private one - gives such
silly error messages
parent
77f09fe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
arp.c
arp.c
+6
-3
No files found.
arp.c
View file @
86cdbae6
...
...
@@ -100,6 +100,7 @@ arp_del(char **args)
struct
arpreq
req
;
struct
sockaddr
sa
;
int
flags
=
0
;
int
err
;
memset
((
char
*
)
&
req
,
0
,
sizeof
(
req
));
...
...
@@ -192,10 +193,12 @@ arp_del(char **args)
strcpy
(
req
.
arp_dev
,
device
);
err
=
-
1
;
/* Call the kernel. */
if
(
flags
&
2
)
{
if
(
opt_v
)
fprintf
(
stderr
,
"arp: SIOCDARP(nopub)
\n
"
);
if
(
ioctl
(
sockfd
,
SIOCDARP
,
&
req
)
<
0
)
{
if
(
(
err
=
ioctl
(
sockfd
,
SIOCDARP
,
&
req
)
<
0
)
)
{
if
(
errno
==
ENXIO
)
{
if
(
flags
&
1
)
goto
nopub
;
...
...
@@ -207,7 +210,7 @@ arp_del(char **args)
return
(
-
1
);
}
}
if
(
flags
&
1
)
{
if
(
(
flags
&
1
)
&&
(
err
)
)
{
nopub:
req
.
arp_flags
|=
ATF_PUBL
;
if
(
opt_v
)
fprintf
(
stderr
,
"arp: SIOCDARP(pub)
\n
"
);
...
...
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