Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
a37e298f
Commit
a37e298f
authored
Jan 07, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ipv4 addresses unsigned in kernel interface.
parent
e1f9be63
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
kernel.h
kernel.h
+2
-1
kernel_netlink.c
kernel_netlink.c
+1
-1
kernel_socket.c
kernel_socket.c
+1
-1
network.c
network.c
+1
-1
No files found.
kernel.h
View file @
a37e298f
...
@@ -38,7 +38,8 @@ int kernel_setup(int setup, int ipv4);
...
@@ -38,7 +38,8 @@ int kernel_setup(int setup, int ipv4);
int
kernel_setup_socket
(
int
setup
);
int
kernel_setup_socket
(
int
setup
);
int
kernel_setup_interface
(
int
setup
,
const
char
*
ifname
,
int
ifindex
);
int
kernel_setup_interface
(
int
setup
,
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_operational
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_operational
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
char
*
addr_r
);
int
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
unsigned
char
*
addr_r
);
int
kernel_interface_mtu
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_mtu
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_wireless
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_interface_wireless
(
const
char
*
ifname
,
int
ifindex
);
int
kernel_route
(
int
operation
,
const
unsigned
char
*
dest
,
unsigned
short
plen
,
int
kernel_route
(
int
operation
,
const
unsigned
char
*
dest
,
unsigned
short
plen
,
...
...
kernel_netlink.c
View file @
a37e298f
...
@@ -557,7 +557,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
...
@@ -557,7 +557,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
}
}
int
int
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
char
*
addr_r
)
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
unsigned
char
*
addr_r
)
{
{
struct
ifreq
req
;
struct
ifreq
req
;
int
rc
;
int
rc
;
...
...
kernel_socket.c
View file @
a37e298f
...
@@ -227,7 +227,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
...
@@ -227,7 +227,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
}
}
int
int
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
char
*
addr_r
)
kernel_interface_ipv4
(
const
char
*
ifname
,
int
ifindex
,
unsigned
char
*
addr_r
)
{
{
struct
ifreq
req
;
struct
ifreq
req
;
int
s
,
rc
;
int
s
,
rc
;
...
...
network.c
View file @
a37e298f
...
@@ -39,7 +39,7 @@ struct network *
...
@@ -39,7 +39,7 @@ struct network *
add_network
(
char
*
ifname
,
int
ifindex
,
int
mtu
,
int
wired
,
unsigned
int
cost
)
add_network
(
char
*
ifname
,
int
ifindex
,
int
mtu
,
int
wired
,
unsigned
int
cost
)
{
{
void
*
p
;
void
*
p
;
char
ipv4
[
4
];
unsigned
char
ipv4
[
4
];
int
rc
;
int
rc
;
if
(
numnets
>=
MAXNETS
)
{
if
(
numnets
>=
MAXNETS
)
{
...
...
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