summaryrefslogtreecommitdiff
path: root/src/libhydra/kernel/kernel_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhydra/kernel/kernel_net.h')
-rw-r--r--src/libhydra/kernel/kernel_net.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libhydra/kernel/kernel_net.h b/src/libhydra/kernel/kernel_net.h
index 0d3417f1d..8c448ddbc 100644
--- a/src/libhydra/kernel/kernel_net.h
+++ b/src/libhydra/kernel/kernel_net.h
@@ -35,17 +35,17 @@ typedef enum kernel_address_type_t kernel_address_type_t;
*/
enum kernel_address_type_t {
/** normal addresses (on regular, up, non-ignored) interfaces */
- ADDR_TYPE_REGULAR = 0,
+ ADDR_TYPE_REGULAR = (1 << 0),
/** addresses on down interfaces */
- ADDR_TYPE_DOWN = (1 << 0),
+ ADDR_TYPE_DOWN = (1 << 1),
/** addresses on ignored interfaces */
- ADDR_TYPE_IGNORED = (1 << 1),
+ ADDR_TYPE_IGNORED = (1 << 2),
/** addresses on loopback interfaces */
- ADDR_TYPE_LOOPBACK = (1 << 2),
+ ADDR_TYPE_LOOPBACK = (1 << 3),
/** virtual IP addresses */
- ADDR_TYPE_VIRTUAL = (1 << 3),
+ ADDR_TYPE_VIRTUAL = (1 << 4),
/** to enumerate all available addresses */
- ADDR_TYPE_ALL = (1 << 4) - 1,
+ ADDR_TYPE_ALL = (1 << 5) - 1,
};
/**
@@ -134,7 +134,7 @@ struct kernel_net_t {
*
* The kernel interface uses refcounting, see add_ip().
*
- * @param virtual_ip virtual ip address to assign
+ * @param virtual_ip virtual ip address to remove
* @param prefix prefix length of the IP to uninstall, -1 for auto
* @param wait TRUE to wait until IP is gone
* @return SUCCESS if operation completed
@@ -148,7 +148,7 @@ struct kernel_net_t {
* @param dst_net destination net
* @param prefixlen destination net prefix length
* @param gateway gateway for this route
- * @param src_ip sourc ip of the route
+ * @param src_ip source ip of the route
* @param if_name name of the interface the route is bound to
* @return SUCCESS if operation completed
* ALREADY_DONE if the route already exists
@@ -163,7 +163,7 @@ struct kernel_net_t {
* @param dst_net destination net
* @param prefixlen destination net prefix length
* @param gateway gateway for this route
- * @param src_ip sourc ip of the route
+ * @param src_ip source ip of the route
* @param if_name name of the interface the route is bound to
* @return SUCCESS if operation completed
*/