Changeset 1cea750
- Timestamp:
- 02/16/05 17:21:57 (18 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
rb56ea4d r1cea750 909 909 } 910 910 911 #define SW_IP_OFFMASK 0xff1f 911 912 912 913 /** get a pointer to the TCP header (if any) … … 917 918 * @returns a pointer to the TCP header, or NULL if there is not a TCP packet 918 919 */ 919 920 #define SW_IP_OFFMASK 0xff1f921 920 struct libtrace_tcp *trace_get_tcp(struct libtrace_packet_t *packet) { 922 921 struct libtrace_tcp *tcpptr = 0; … … 1488 1487 } 1489 1488 1490 1491 /** Attempt to deduce the 'server' port1492 * @param protocol the IP protocol (eg, 6 or 17 for TCP or UDP)1493 * @param source the TCP or UDP source port1494 * @param dest the TCP or UDP destination port1495 * @returns a hint as to which port is the server port1496 * @author Daniel Lawson1497 */1498 1489 #define ROOT_SERVER(x) ((x) < 512) 1499 1490 #define ROOT_CLIENT(x) ((512 <= (x)) && ((x) < 1024)) … … 1504 1495 #define CLIENT(x) ROOT_CLIENT(x) || NONROOT_CLIENT(x) 1505 1496 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 */ 1506 1505 int8_t trace_get_server_port(uint8_t protocol, uint16_t source, uint16_t dest) { 1507 1506 /*
Note: See TracChangeset
for help on using the changeset viewer.