Commit a37e298f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make ipv4 addresses unsigned in kernel interface.

parent e1f9be63
......@@ -38,7 +38,8 @@ int kernel_setup(int setup, int ipv4);
int kernel_setup_socket(int setup);
int kernel_setup_interface(int setup, 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_wireless(const char *ifname, int ifindex);
int kernel_route(int operation, const unsigned char *dest, unsigned short plen,
......
......@@ -557,7 +557,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
}
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;
int rc;
......
......@@ -227,7 +227,7 @@ kernel_interface_operational(const char *ifname, int ifindex)
}
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;
int s, rc;
......
......@@ -39,7 +39,7 @@ struct network *
add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost)
{
void *p;
char ipv4[4];
unsigned char ipv4[4];
int rc;
if(numnets >= MAXNETS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment