[hipl-commit] [tiny] Rev 3614: Moved struct hip_packet_contex and added description.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 4 Mar 2010 17:03:10 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Thu Mar 04 16:01:46 2010 +0100
Revision: 3614
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Moved struct hip_packet_contex and added description.
  
  The hip specific struct hip_packet_context was moved from libmodularization
  to lib/core/protodefs.h and a description was added.

Modified:
  M  lib/core/protodefs.h
  M  lib/modularization/modularization.h

=== modified file 'lib/core/protodefs.h'
--- lib/core/protodefs.h        2010-02-19 18:05:57 +0000
+++ lib/core/protodefs.h        2010-03-04 15:01:46 +0000
@@ -1000,8 +1000,6 @@
     int            heartbeat;
 } __attribute__ ((packed));
 
-//add by santtu from here
-
 struct hip_nat_transform {
     hip_tlv_type_t        type;
     hip_tlv_len_t         length;
@@ -1010,7 +1008,6 @@
 } __attribute__ ((packed));
 /* @} */
 
-
 struct hip_nat_pacing {
     hip_tlv_type_t type;
     hip_tlv_len_t  length;
@@ -1048,5 +1045,19 @@
     in_port_t      port;      /**< Port number. */
 } __attribute__ ((packed));
 
+/**
+ * Structure used during packet handling to store the incoming message,
+ * source address, destination address, the used ports, the host association
+ * database entry and a flag indicating the packet handling should be aborted.
+ */
+struct hip_packet_context {
+    struct hip_common         *msg;
+    struct in6_addr           *src_addr;
+    struct in6_addr           *dst_addr;
+    struct hip_stateless_info *msg_info;
+    struct hip_hadb_state     *hadb_entry;
+    uint8_t                    drop_packet;
+};
+
 
 #endif /* HIP_LIB_CORE_PROTODEFS_H */

=== modified file 'lib/modularization/modularization.h'
--- lib/modularization/modularization.h 2010-03-04 14:52:32 +0000
+++ lib/modularization/modularization.h 2010-03-04 15:01:46 +0000
@@ -18,18 +18,6 @@
 /**
  * @todo add description
  */
-struct hip_packet_context {
-    struct hip_common         *msg;
-    struct in6_addr           *src_addr;
-    struct in6_addr           *dst_addr;
-    struct hip_stateless_info *msg_info;
-    struct hip_hadb_state     *hadb_entry;
-    uint8_t                    drop_packet;
-};
-
-/**
- * @todo add description
- */
 struct modular_state {
     hip_ll_t        *item_list;
     char           **item_names;

Other related posts:

  • » [hipl-commit] [tiny] Rev 3614: Moved struct hip_packet_contex and added description. - Tim Just