Changeset e7132d6 for lib/libtrace.h.in


Ignore:
Timestamp:
01/14/19 15:37:27 (22 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
7aa03d9
Parents:
977e0db
Message:

improvements to meta-api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r977e0db re7132d6  
    588588typedef struct libtrace_meta {
    589589        char *interface_name;           /**< Interface name packet was captured on */
    590         char *interface_mac;            /**< Interface MAC address packet was captured on */
     590        void *interface_mac;            /**< Interface MAC address packet was captured on */
    591591        uint64_t interface_speed;       /**< Interface speed packet was captured on */
    592592        uint32_t interface_ipv4;        /**< Interface IP4 address packet was captured on */
    593         char *interface_ipv6;           /**< Interface IP6 address packet was captured on */
     593        void *interface_ipv6;           /**< Interface IP6 address packet was captured on */
    594594        char *interface_description;    /**< Interface description */
     595        uint32_t interface_num;         /**< Interface number */
     596        char *host_os;                  /**< Host OS the packet was captured on */
     597        uint32_t interface_fcslen;      /**< Frame check sequence length for the interface */
     598        char *interface_hardware_desc;  /**< Interface hardware description string */
     599        char *interface_comment;        /**< Interface comment */
     600        char *capture_application;      /**< Name of the capturing application */
    595601} libtrace_meta_t;
    596602
     
    37153721
    37163722char *trace_get_interface_name(libtrace_packet_t *packet);
    3717 char *trace_get_interface_mac(libtrace_packet_t *packet);
    3718 uint64_t trace_get_interface_speed(libtrace_packet_t *packet);
    3719 uint32_t trace_get_interface_ip4(libtrace_packet_t *packet);
    3720 uint32_t trace_get_interface_ipv4(libtrace_packet_t *packet);
    3721 char *trace_get_interface_ip6(libtrace_packet_t *packet);
    3722 char *trace_get_interface_ipv6(libtrace_packet_t *packet);
     3723void *trace_get_interface_mac(libtrace_packet_t *packet);
     3724uint64_t *trace_get_interface_speed(libtrace_packet_t *packet);
     3725uint32_t *trace_get_interface_ip4(libtrace_packet_t *packet);
     3726uint32_t *trace_get_interface_ipv4(libtrace_packet_t *packet);
     3727void *trace_get_interface_ip6(libtrace_packet_t *packet);
     3728void *trace_get_interface_ipv6(libtrace_packet_t *packet);
    37233729char *trace_get_interface_description(libtrace_packet_t *packet);
    3724 libtrace_meta_result_t *trace_get_interface_num(libtrace_packet_t *packet);
    3725 libtrace_meta_result_t *trace_get_host_os(libtrace_packet_t *packet);
    3726 libtrace_meta_result_t *trace_get_tzone(libtrace_packet_t *packet);
    3727 libtrace_meta_result_t *trace_get_app_name(libtrace_packet_t *packet);
     3730uint32_t *trace_get_interface_num(libtrace_packet_t *packet);
     3731char *trace_get_host_os(libtrace_packet_t *packet);
     3732uint32_t *trace_get_interface_frame_check_sequence_length(libtrace_packet_t *packet);
     3733char *trace_get_interface_hardware_description(libtrace_packet_t *packet);
     3734char *trace_get_interface_comment(libtrace_packet_t *packet);
     3735char *trace_get_capture_application(libtrace_packet_t *packet);
    37283736
    37293737#endif /* LIBTRACE_H_ */
Note: See TracChangeset for help on using the changeset viewer.