hipl-core team mailing list archive
-
hipl-core team
-
Mailing list archive
-
Message #00144
[Branch ~rene-hummen/hipl/ipsec_esp] Rev 4918: added unregistering functionality for handle functions
Merge authors:
René Hummen (rene-hummen)
------------------------------------------------------------
revno: 4918 [merge]
committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
branch nick: ipsec_esp
timestamp: Mon 2010-09-06 19:06:39 +0200
message:
added unregistering functionality for handle functions
modified:
hipd/pkt_handling.c
--
lp:~rene-hummen/hipl/ipsec_esp
https://code.launchpad.net/~rene-hummen/hipl/ipsec_esp
Your team HIPL core team is subscribed to branch lp:~rene-hummen/hipl/ipsec_esp.
To unsubscribe from this branch go to https://code.launchpad.net/~rene-hummen/hipl/ipsec_esp/+edit-subscription
=== modified file 'hipd/pkt_handling.c'
--- hipd/pkt_handling.c 2010-08-29 16:24:14 +0000
+++ hipd/pkt_handling.c 2010-09-06 17:06:39 +0000
@@ -103,6 +103,24 @@
}
/**
+ * Remove a handle function from the list.
+ *
+ * @param *handle_function Pointer to the function which should be unregistered.
+ *
+ * @return Success = 0
+ * Error = -1
+ */
+int hip_unregister_handle_function(const uint8_t packet_type,
+ const uint32_t ha_state,
+ int (*handle_function)(const uint8_t packet_type,
+ const uint32_t ha_state,
+ struct hip_packet_context *ctx))
+{
+ return lmod_unregister_function(hip_handle_functions[packet_type][ha_state],
+ handle_function);
+}
+
+/**
* Run all handle functions for specified combination from packet type and host
* association state.
*