aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/iface.c16
-rw-r--r--src/includes/iface.h16
-rw-r--r--src/includes/network.h2
-rw-r--r--src/netdt.obin1748 -> 0 bytes
-rw-r--r--src/network.c2
5 files changed, 18 insertions, 18 deletions
diff --git a/src/iface.c b/src/iface.c
index 8c67218..c6986c7 100644
--- a/src/iface.c
+++ b/src/iface.c
@@ -78,42 +78,42 @@ void iface_init(int socket, char *name)
PDEBUG("iface_init() ended\n");
}
-int inline iface_get_index()
+int iface_get_index()
{
return (interface.index);
}
-int inline iface_get_mtu()
+int iface_get_mtu()
{
return (interface.mtu);
}
-int inline iface_get_metric()
+int iface_get_metric()
{
return (interface.metric);
}
-short inline iface_get_flags()
+short iface_get_flags()
{
return (interface.flags);
}
-void inline iface_get_ip(struct in_addr *ip)
+void iface_get_ip(struct in_addr *ip)
{
(*ip) = interface.ip;
}
-void inline iface_get_netmask(struct in_addr *netmask)
+void iface_get_netmask(struct in_addr *netmask)
{
(*netmask) = interface.netmask;
}
-void inline iface_get_broadcast(struct in_addr *broadcast)
+void iface_get_broadcast(struct in_addr *broadcast)
{
(*broadcast) = interface.broadcast;
}
-void inline iface_get_mac(struct ether_addr *mac)
+void iface_get_mac(struct ether_addr *mac)
{
(*mac) = interface.mac;
}
diff --git a/src/includes/iface.h b/src/includes/iface.h
index da2f86a..cfdbef8 100644
--- a/src/includes/iface.h
+++ b/src/includes/iface.h
@@ -27,13 +27,13 @@
/* Initialize global interface variables, call first */
void iface_init(int, char *);
-int inline iface_get_index();
-int inline iface_get_mtu();
-int inline iface_get_metric();
-short inline iface_get_flags();
-void inline iface_get_ip(struct in_addr *);
-void inline iface_get_netmask(struct in_addr *);
-void inline iface_get_broadcast(struct in_addr *);
-void inline iface_get_mac(struct ether_addr *);
+int iface_get_index();
+int iface_get_mtu();
+int iface_get_metric();
+short iface_get_flags();
+void iface_get_ip(struct in_addr *);
+void iface_get_netmask(struct in_addr *);
+void iface_get_broadcast(struct in_addr *);
+void iface_get_mac(struct ether_addr *);
#endif
diff --git a/src/includes/network.h b/src/includes/network.h
index 0b6a984..0c46c9e 100644
--- a/src/includes/network.h
+++ b/src/includes/network.h
@@ -21,7 +21,7 @@
#ifndef __NETDT_NETWORK_H__
#define __NETDT_NETWORK_H__ 1
-void inline net_calc_network(struct in_addr, struct in_addr);
+void net_calc_network(struct in_addr, struct in_addr);
in_addr_t net_next_ip(struct in_addr);
#endif
diff --git a/src/netdt.o b/src/netdt.o
deleted file mode 100644
index 1c5bcab..0000000
--- a/src/netdt.o
+++ /dev/null
Binary files differ
diff --git a/src/network.c b/src/network.c
index 5f0bf42..17bdf23 100644
--- a/src/network.c
+++ b/src/network.c
@@ -25,7 +25,7 @@ struct network
unsigned long start, end;
} network;
-void inline net_calc_network(struct in_addr ip, struct in_addr netmask)
+void net_calc_network(struct in_addr ip, struct in_addr netmask)
{
network.start = ip.s_addr & netmask.s_addr; /* sitas isvis niekam nereikalingas, reikia sugalvoti kur i kisti */
network.end = ip.s_addr | (~netmask.s_addr);