summaryrefslogtreecommitdiffstats
path: root/include/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/network.h b/include/network.h
index 9098e5c..b6722bd 100644
--- a/include/network.h
+++ b/include/network.h
@@ -17,6 +17,13 @@ struct nethdr {
};
#define NETHDR_SIZ nethdr_align(sizeof(struct nethdr))
+enum nethdr_type {
+ NET_T_STATE_NEW = 0,
+ NET_T_STATE_UPD,
+ NET_T_STATE_DEL,
+ NET_T_STATE_MAX = NET_T_STATE_DEL,
+};
+
int nethdr_align(int len);
int nethdr_size(int len);
void nethdr_set(struct nethdr *net, int type);