Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ROOL
InetRes
Commits
262a62f3
Commit
262a62f3
authored
21 years ago
by
Ben Avison
Browse files
Options
Download
Email Patches
Plain Diff
Minor changes required in order to build with cc 5.55.
Tagged as 'Internet-5_43a'
parent
540839dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Sources/ifconfig/c/IfConfig
Sources/ifconfig/c/IfConfig
+8
-7
No files found.
Sources/ifconfig/c/IfConfig
View file @
262a62f3
...
...
@@ -406,7 +406,7 @@ int ifconfig(int argc, char *argv[], int af, struct afswtch *rafp,
#define DSTADDR 3
/*ARGSUSED*/
void
setifaddr
(
char
*
addr
,
shor
t
param
)
void
setifaddr
(
char
*
addr
,
in
t
param
)
{
/*
* Delay the ioctl to set the interface addr until flags are all set.
...
...
@@ -475,14 +475,15 @@ void setifdstaddr(char *addr, int param)
(
*
afp
->
af_getaddr
)(
addr
,
DSTADDR
);
}
void
setifflags
(
char
*
vname
,
shor
t
value
)
void
setifflags
(
char
*
vname
,
in
t
value
)
{
if
(
ioctl
(
s
,
SIOCGIFFLAGS
,
(
caddr_t
)
&
ifr
)
<
0
)
{
Perror
(
"ioctl (SIOCGIFFLAGS)"
);
exit
(
1
);
}
value
=
(
short
)
value
;
if
(
ioctl
(
s
,
SIOCGIFFLAGS
,
(
caddr_t
)
&
ifr
)
<
0
)
{
Perror
(
"ioctl (SIOCGIFFLAGS)"
);
exit
(
1
);
}
strncpy
(
ifr
.
ifr_name
,
name
,
sizeof
(
ifr
.
ifr_name
));
flags
=
ifr
.
ifr_flags
;
flags
=
ifr
.
ifr_flags
;
if
(
value
<
0
)
{
value
=
-
value
;
...
...
This diff is collapsed.
Click to expand it.
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