Changeset cc6fcee for lib/libtrace.h.in


Ignore:
Timestamp:
01/06/12 11:25:39 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
e224862
Parents:
29532e3
Message:
  • Added a function for parsing OSPF packets that contain LSA headers only, e.g. LS Acks, as we can't rely on the LSA length field to tell us how long the LSA in these packets is :(
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r29532e3 rcc6fcee  
    20092009 *
    20102010 * @note This function only works for OSPF version 2 packets.
    2011  * @note Use trace_get_first_ospf_lsa() and trace_get_next_ospf_lsa() to read the LSAs from Link State Request
    2012  * and Update packets.
     2011 * @note Use trace_get_first_ospf_lsa_v2_from_X() and trace_get_next_ospf_lsa_v2() to read the LSAs from Link State Update packets.
     2012 * @note Use trace_get_first_ospf_lsa_v2_from_X() and trace_get_next_ospf_lsa_header_v2() to read the LSA headers from Link State Ack packets.
    20132013 *
    20142014 */
     
    20452045                uint8_t *lsa_type,
    20462046                uint16_t *lsa_length);
     2047
     2048DLLEXPORT SIMPLE_FUNCTION
     2049int trace_get_next_ospf_lsa_header_v2(unsigned char **current,
     2050                libtrace_ospf_lsa_v2_t **lsa_hdr,
     2051                uint32_t *remaining,
     2052                uint8_t *lsa_type,
     2053                uint16_t *lsa_length);
     2054
    20472055
    20482056DLLEXPORT SIMPLE_FUNCTION
Note: See TracChangeset for help on using the changeset viewer.