|
Hybrid ICN (hICN) plugin
v21.06-rc0-4-g18fa668
|
Public Attributes | |
| int(* | init_packet_header )(hicn_type_t type, hicn_protocol_t *h) |
| Initialize the headers of the hicn packet. More... | |
| int(* | get_interest_locator )(hicn_type_t type, const hicn_protocol_t *h, ip46_address_t *ip_address) |
| Retrieves an Interest locator. More... | |
| int(* | set_interest_locator )(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *ip_address) |
| Sets an Interest locator. More... | |
| int(* | get_interest_name )(hicn_type_t type, const hicn_protocol_t *h, hicn_name_t *name) |
| Retrieves an Interest name. More... | |
| int(* | set_interest_name )(hicn_type_t type, hicn_protocol_t *h, const hicn_name_t *name) |
| Sets an Interest name. More... | |
| int(* | get_interest_name_suffix )(hicn_type_t type, const hicn_protocol_t *h, hicn_name_suffix_t *suffix) |
| Retrieves an Interest name suffix. More... | |
| int(* | set_interest_name_suffix )(hicn_type_t type, hicn_protocol_t *h, const hicn_name_suffix_t *suffix) |
| Sets an Interest name suffix. More... | |
| int(* | mark_packet_as_interest )(hicn_type_t type, hicn_protocol_t *h) |
| Set flag to mark current packet as interest. More... | |
| int(* | mark_packet_as_data )(hicn_type_t type, hicn_protocol_t *h) |
| Set flag to mark current packet as data. More... | |
| int(* | reset_interest_for_hash )(hicn_type_t type, hicn_protocol_t *h) |
| Clear the necessary Interest fields in order to hash it. More... | |
| int(* | get_data_locator )(hicn_type_t type, const hicn_protocol_t *h, ip46_address_t *ip_address) |
| Retrieves a Data locator. More... | |
| int(* | set_data_locator )(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *ip_address) |
| Sets a Data locator. More... | |
| int(* | get_data_name )(hicn_type_t type, const hicn_protocol_t *h, hicn_name_t *name) |
| Retrieves a Data name. More... | |
| int(* | set_data_name )(hicn_type_t type, hicn_protocol_t *h, const hicn_name_t *name) |
| Sets a Data name. More... | |
| int(* | get_data_name_suffix )(hicn_type_t type, const hicn_protocol_t *h, hicn_name_suffix_t *suffix) |
| Retrieves a Data name suffix. More... | |
| int(* | set_data_name_suffix )(hicn_type_t type, hicn_protocol_t *h, const hicn_name_suffix_t *suffix) |
| Sets a Data name suffix. More... | |
| int(* | get_data_pathlabel )(hicn_type_t type, const hicn_protocol_t *h, u32 *pathlabel) |
| Retrieves a Data pathlabel. More... | |
| int(* | set_data_pathlabel )(hicn_type_t type, hicn_protocol_t *h, const u32 pathlabel) |
| Sets a Data pathlabel. More... | |
| int(* | update_data_pathlabel )(hicn_type_t type, hicn_protocol_t *h, const hicn_faceid_t face_id) |
| Update a Data pathlabel with a new face identifier. More... | |
| int(* | reset_data_for_hash )(hicn_type_t type, hicn_protocol_t *h) |
| Clear the necessary Data fields in order to hash it. More... | |
| int(* | get_lifetime )(hicn_type_t type, const hicn_protocol_t *h, hicn_lifetime_t *lifetime) |
| Retrieves an Interest or Data lifetime. More... | |
| int(* | set_lifetime )(hicn_type_t type, hicn_protocol_t *h, const hicn_lifetime_t lifetime) |
| Sets an Interest or Data lifetime. More... | |
| int(* | update_checksums )(hicn_type_t type, hicn_protocol_t *h, u16 partial_csum, size_t payload_length) |
| Update all checksums in packet headers. More... | |
| int(* | verify_checksums )(hicn_type_t type, hicn_protocol_t *h, u16 partial_csum, size_t payload_length) |
| Validate all checksums in packet headers. More... | |
| int(* | rewrite_interest )(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *addr_new, ip46_address_t *addr_old) |
| Rewrite an Interest packet header (locator) More... | |
| int(* | rewrite_data )(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *addr_new, ip46_address_t *addr_old, const hicn_faceid_t face_id, u8 reset_pl) |
| Rewrite a Data packet header (locator + pathlabel) More... | |
| int(* | get_length )(hicn_type_t type, const hicn_protocol_t *h, size_t *length) |
| Return the packet length. More... | |
| int(* | get_current_header_length )(hicn_type_t type, const hicn_protocol_t *h, size_t *header_length) |
| Return the current packet header length. More... | |
| int(* | get_header_length )(hicn_type_t type, const hicn_protocol_t *h, size_t *header_length) |
| Return the packet header length. More... | |
| int(* | get_payload_length )(hicn_type_t type, const hicn_protocol_t *h, size_t *payload_length) |
| Return the packet payload length. More... | |
| int(* | set_payload_length )(hicn_type_t type, hicn_protocol_t *h, size_t payload_length) |
| Sets the packet paylaod length. More... | |
| int(* | get_signature_size )(hicn_type_t type, const hicn_protocol_t *h, size_t *signature_size) |
| Retrieves an Interest or Data signature size. More... | |
| int(* | set_signature_size )(hicn_type_t type, hicn_protocol_t *h, size_t signature_size) |
| Sets an Interest or Data signature size. More... | |
| int(* | set_signature_gap )(hicn_type_t type, hicn_protocol_t *h, uint8_t signature_gap) |
| Sets an Interest or Data signature gap between maximum size and real size. More... | |
| int(* | get_signature_gap )(hicn_type_t type, const hicn_protocol_t *h, uint8_t *signature_gap) |
| gets an Interest or Data signature gap between maximum size and real size More... | |
| int(* | get_signature_timestamp )(hicn_type_t type, const hicn_protocol_t *h, uint64_t *signature_timestamp) |
| Gets the signature timestamp. More... | |
| int(* | set_signature_timestamp )(hicn_type_t type, hicn_protocol_t *h, uint64_t signature_timestamp) |
| Sets the signature timestamp. More... | |
| int(* | get_validation_algorithm )(hicn_type_t type, const hicn_protocol_t *h, uint8_t *validation_algorithm) |
| Gets the signature validation algorithm. More... | |
| int(* | set_validation_algorithm )(hicn_type_t type, hicn_protocol_t *h, uint8_t validation_algorithm) |
| Sets the signature validation algorithm. More... | |
| int(* | get_key_id )(hicn_type_t type, hicn_protocol_t *h, uint8_t **key_id, uint8_t *key_id_size) |
| Gets the key id. More... | |
| int(* | set_key_id )(hicn_type_t type, hicn_protocol_t *h, uint8_t *key_id) |
| Sets the key id. More... | |
| int(* | get_signature )(hicn_type_t type, hicn_protocol_t *h, uint8_t **signature) |
| Get a pointer to the signature field in the packet. More... | |
| int(* hicn_ops_s::get_current_header_length)(hicn_type_t type, const hicn_protocol_t *h, size_t *header_length) |
Return the current packet header length.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the packet @parma [out] header_length - Returned packet current header length |
| int(* hicn_ops_s::get_data_locator)(hicn_type_t type, const hicn_protocol_t *h, ip46_address_t *ip_address) |
Retrieves a Data locator.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Data packet |
| [out] | ip_address | - Retrieved locator |
| int(* hicn_ops_s::get_data_name)(hicn_type_t type, const hicn_protocol_t *h, hicn_name_t *name) |
Retrieves a Data name.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Data packet |
| [out] | name | - Retrieved name |
| int(* hicn_ops_s::get_data_name_suffix)(hicn_type_t type, const hicn_protocol_t *h, hicn_name_suffix_t *suffix) |
Retrieves a Data name suffix.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Data packet |
| [out] | suffix | - Retrieved name suffix |
| int(* hicn_ops_s::get_data_pathlabel)(hicn_type_t type, const hicn_protocol_t *h, u32 *pathlabel) |
Retrieves a Data pathlabel.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Data packet |
| [out] | pathlabel | - Retrieved pathlabel |
| int(* hicn_ops_s::get_header_length)(hicn_type_t type, const hicn_protocol_t *h, size_t *header_length) |
Return the packet header length.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the packet @parma [out] header_length - Returned packet header length |
| int(* hicn_ops_s::get_interest_locator)(hicn_type_t type, const hicn_protocol_t *h, ip46_address_t *ip_address) |
Retrieves an Interest locator.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest packet |
| [out] | ip_address | - Retrieved locator |
| int(* hicn_ops_s::get_interest_name)(hicn_type_t type, const hicn_protocol_t *h, hicn_name_t *name) |
Retrieves an Interest name.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest packet |
| [out] | name | - Retrieved name |
| int(* hicn_ops_s::get_interest_name_suffix)(hicn_type_t type, const hicn_protocol_t *h, hicn_name_suffix_t *suffix) |
Retrieves an Interest name suffix.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest packet |
| [out] | suffix | - Retrieved name suffix |
| int(* hicn_ops_s::get_key_id)(hicn_type_t type, hicn_protocol_t *h, uint8_t **key_id, uint8_t *key_id_size) |
Gets the key id.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [out] | key_id | - Retrieved key id first byte address |
| int(* hicn_ops_s::get_length)(hicn_type_t type, const hicn_protocol_t *h, size_t *length) |
Return the packet length.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the packet @parma [out] length - Returned packet length |
| int(* hicn_ops_s::get_lifetime)(hicn_type_t type, const hicn_protocol_t *h, hicn_lifetime_t *lifetime) |
Retrieves an Interest or Data lifetime.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest or Data packet |
| [out] | pathlabel | - Retrieved lifetime |
| int(* hicn_ops_s::get_payload_length)(hicn_type_t type, const hicn_protocol_t *h, size_t *payload_length) |
Return the packet payload length.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the packet @parma [out] payload_length - Returned packet payload length |
| int(* hicn_ops_s::get_signature)(hicn_type_t type, hicn_protocol_t *h, uint8_t **signature) |
Get a pointer to the signature field in the packet.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [out] | signature | - Pointer to the memory region holding the signature |
| int(* hicn_ops_s::get_signature_gap)(hicn_type_t type, const hicn_protocol_t *h, uint8_t *signature_gap) |
gets an Interest or Data signature gap between maximum size and real size
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | signature_size | - retrieve the gap between maximum size and real size |
| int(* hicn_ops_s::get_signature_size)(hicn_type_t type, const hicn_protocol_t *h, size_t *signature_size) |
Retrieves an Interest or Data signature size.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest or Data packet |
| [out] | signature_size | - Retrieved signature size |
| int(* hicn_ops_s::get_signature_timestamp)(hicn_type_t type, const hicn_protocol_t *h, uint64_t *signature_timestamp) |
Gets the signature timestamp.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [out] | signature_timestamp | - Retrieved signature timestamp |
| int(* hicn_ops_s::get_validation_algorithm)(hicn_type_t type, const hicn_protocol_t *h, uint8_t *validation_algorithm) |
Gets the signature validation algorithm.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [out] | validation_algorithm | - Retrieved validation_algorithm |
| int(* hicn_ops_s::init_packet_header)(hicn_type_t type, hicn_protocol_t *h) |
Initialize the headers of the hicn packet.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the packet |
| int(* hicn_ops_s::mark_packet_as_data)(hicn_type_t type, hicn_protocol_t *h) |
Set flag to mark current packet as data.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| int(* hicn_ops_s::mark_packet_as_interest)(hicn_type_t type, hicn_protocol_t *h) |
Set flag to mark current packet as interest.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| int(* hicn_ops_s::reset_data_for_hash)(hicn_type_t type, hicn_protocol_t *h) |
Clear the necessary Data fields in order to hash it.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| int(* hicn_ops_s::reset_interest_for_hash)(hicn_type_t type, hicn_protocol_t *h) |
Clear the necessary Interest fields in order to hash it.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| int(* hicn_ops_s::rewrite_data)(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *addr_new, ip46_address_t *addr_old, const hicn_faceid_t face_id, u8 reset_pl) |
Rewrite a Data packet header (locator + pathlabel)
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Data packet |
| [in] | addr_new | - New locator |
| [in] | addr_old | - Old locator (set to NULL, used internally to compute incremental checksums) |
| [in] | face_id | - Face identifier used to update pathlabel |
| [in] | reset_pl | - If not zero, reset the current pathlabel before update it |
| int(* hicn_ops_s::rewrite_interest)(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *addr_new, ip46_address_t *addr_old) |
Rewrite an Interest packet header (locator)
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the Interest packet |
| [in] | addr_new | - New locator |
| [in] | addr_old | - Old locator (set to NULL, used internally to compute incremental checksums) |
| int(* hicn_ops_s::set_data_locator)(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *ip_address) |
Sets a Data locator.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| [in] | ip_address | - Locator to set |
| int(* hicn_ops_s::set_data_name)(hicn_type_t type, hicn_protocol_t *h, const hicn_name_t *name) |
Sets a Data name.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| [in] | name | - Name to set |
| int(* hicn_ops_s::set_data_name_suffix)(hicn_type_t type, hicn_protocol_t *h, const hicn_name_suffix_t *suffix) |
Sets a Data name suffix.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| [in] | suffix | - Name suffix to set |
| int(* hicn_ops_s::set_data_pathlabel)(hicn_type_t type, hicn_protocol_t *h, const u32 pathlabel) |
Sets a Data pathlabel.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| [in] | pathlabel | - Pathlabel to set |
| int(* hicn_ops_s::set_interest_locator)(hicn_type_t type, hicn_protocol_t *h, const ip46_address_t *ip_address) |
Sets an Interest locator.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| [in] | ip_address | - Locator to set |
| int(* hicn_ops_s::set_interest_name)(hicn_type_t type, hicn_protocol_t *h, const hicn_name_t *name) |
Sets an Interest name.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| [in] | name | - Name to set |
| int(* hicn_ops_s::set_interest_name_suffix)(hicn_type_t type, hicn_protocol_t *h, const hicn_name_suffix_t *suffix) |
Sets an Interest name suffix.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest packet |
| [in] | suffix | - Name suffix to set |
| int(* hicn_ops_s::set_key_id)(hicn_type_t type, hicn_protocol_t *h, uint8_t *key_id) |
Sets the key id.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | key_id | - Key id first byte address |
| int(* hicn_ops_s::set_lifetime)(hicn_type_t type, hicn_protocol_t *h, const hicn_lifetime_t lifetime) |
Sets an Interest or Data lifetime.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | pathlabel | - Lifetime to set |
| int(* hicn_ops_s::set_payload_length)(hicn_type_t type, hicn_protocol_t *h, size_t payload_length) |
Sets the packet paylaod length.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the packet @parma [out] payload_length - Payload length to set |
| int(* hicn_ops_s::set_signature_gap)(hicn_type_t type, hicn_protocol_t *h, uint8_t signature_gap) |
Sets an Interest or Data signature gap between maximum size and real size.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | signature_size | - Signature size to set |
| int(* hicn_ops_s::set_signature_size)(hicn_type_t type, hicn_protocol_t *h, size_t signature_size) |
Sets an Interest or Data signature size.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | signature_size | - Signature size to set |
| int(* hicn_ops_s::set_signature_timestamp)(hicn_type_t type, hicn_protocol_t *h, uint64_t signature_timestamp) |
Sets the signature timestamp.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | signature_timestamp | - Signature timestamp to set |
| int(* hicn_ops_s::set_validation_algorithm)(hicn_type_t type, hicn_protocol_t *h, uint8_t validation_algorithm) |
Sets the signature validation algorithm.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Interest or Data packet |
| [in] | validation_algorithm | - Validation algorithm enumeration |
| int(* hicn_ops_s::update_checksums)(hicn_type_t type, hicn_protocol_t *h, u16 partial_csum, size_t payload_length) |
Update all checksums in packet headers.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the packet |
| [in] | partial_csum | - Partial checksum (set to 0, used internally to carry intermediate values from IP pseudo-header) |
| [in] | payload_length | - Payload length (can be set to ~0, retrieved and used internally to carry payload length across protocol headers) |
| int(* hicn_ops_s::update_data_pathlabel)(hicn_type_t type, hicn_protocol_t *h, const hicn_faceid_t face_id) |
Update a Data pathlabel with a new face identifier.
| [in] | type | - hICN packet type |
| [in,out] | h | - Buffer holding the Data packet |
| [in] | pathlabel | - Face identifier used to update pathlabel |
| int(* hicn_ops_s::verify_checksums)(hicn_type_t type, hicn_protocol_t *h, u16 partial_csum, size_t payload_length) |
Validate all checksums in packet headers.
| [in] | type | - hICN packet type |
| [in] | h | - Buffer holding the packet |
| [in] | partial_csum | - Partial checksum, or zero if no partial checksum available |
| [in] | payload_length | - Payload length (can be set to ~0, retrieved and used internally to carry payload length across protocol headers) |
1.8.17