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
51594803
Commit
51594803
authored
Jan 17, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When setting point-to-point address, use the AF-specific
socket not the generic one.
parent
2b17cc4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ifconfig.c
ifconfig.c
+2
-2
No files found.
ifconfig.c
View file @
51594803
...
...
@@ -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
6 1999/01/05 20:52:58
philip Exp $
* Version: $Id: ifconfig.c,v 1.2
7 1999/01/17 21:20:25
philip Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
...
...
@@ -860,7 +860,7 @@ int main(int argc, char **argv)
}
memcpy
((
char
*
)
&
ifr
.
ifr_dstaddr
,
(
char
*
)
&
sa
,
sizeof
(
struct
sockaddr
));
if
(
ioctl
(
sk
fd
,
SIOCSIFDSTADDR
,
&
ifr
)
<
0
)
{
if
(
ioctl
(
ap
->
fd
,
SIOCSIFDSTADDR
,
&
ifr
)
<
0
)
{
fprintf
(
stderr
,
"SIOCSIFDSTADDR: %s
\n
"
,
strerror
(
errno
));
goterr
=
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