Changeset 1cea750 for lib/trace.c


Ignore:
Timestamp:
02/16/05 17:21:57 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
850630f
Parents:
0013085
Message:

moved some #define's around to clear up the doxygen output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rb56ea4d r1cea750  
    909909}
    910910
     911#define SW_IP_OFFMASK 0xff1f
    911912
    912913/** get a pointer to the TCP header (if any)
     
    917918 * @returns a pointer to the TCP header, or NULL if there is not a TCP packet
    918919 */
    919 
    920 #define SW_IP_OFFMASK 0xff1f
    921920struct libtrace_tcp *trace_get_tcp(struct libtrace_packet_t *packet) {
    922921        struct libtrace_tcp *tcpptr = 0;
     
    14881487}
    14891488
    1490 
    1491 /** Attempt to deduce the 'server' port
    1492  * @param protocol the IP protocol (eg, 6 or 17 for TCP or UDP)
    1493  * @param source the TCP or UDP source port
    1494  * @param dest the TCP or UDP destination port
    1495  * @returns a hint as to which port is the server port
    1496  * @author Daniel Lawson
    1497  */
    14981489#define ROOT_SERVER(x) ((x) < 512)
    14991490#define ROOT_CLIENT(x) ((512 <= (x)) && ((x) < 1024))
     
    15041495#define CLIENT(x) ROOT_CLIENT(x) || NONROOT_CLIENT(x)
    15051496
     1497
     1498/** Attempt to deduce the 'server' port
     1499 * @param protocol the IP protocol (eg, 6 or 17 for TCP or UDP)
     1500 * @param source the TCP or UDP source port
     1501 * @param dest the TCP or UDP destination port
     1502 * @returns a hint as to which port is the server port
     1503 * @author Daniel Lawson
     1504 */
    15061505int8_t trace_get_server_port(uint8_t protocol, uint16_t source, uint16_t dest) {
    15071506        /*
Note: See TracChangeset for help on using the changeset viewer.