![]() |
SolarCapture C Bindings User Guide
SF-115721-CD
Issue 3
|
sc_packed_packet: The packed-stream encapsulation. More...
Data Structures | |
| struct | sc_packed_packet |
| A packed-stream packet. More... | |
Macros | |
| #define | SC_PS_FLAG_CLOCK_SET 0x1 |
| #define | SC_PS_FLAG_CLOCK_IN_SYNC 0x2 |
| #define | SC_PS_FLAG_BAD_FCS 0x4 |
| #define | SC_PS_FLAG_BAD_L4_CSUM 0x8 |
| #define | SC_PS_FLAG_BAD_L3_CSUM 0x10 |
Functions | |
| struct sc_packed_packet | __attribute__ ((packed)) |
| static struct sc_packed_packet * | sc_packed_packet_next (const struct sc_packed_packet *ps_pkt) |
| Iterate from one packed-stream header to the next. More... | |
| static void * | sc_packed_packet_payload (const struct sc_packed_packet *ps_pkt) |
| Return a pointer to the packet payload. More... | |
| static struct sc_packed_packet * | sc_packet_packed_first (struct sc_packet *pkt) |
| Return the first packet header in a packed-stream buffer. More... | |
| static struct sc_packed_packet * | sc_packet_packed_end (struct sc_packet *pkt) |
| Return a pointer to the end of a packed-stream buffer. More... | |
| static struct sc_packed_packet * | sc_packet_iov_packed_first (struct sc_packet *pkt, unsigned iov_i) |
| static struct sc_packed_packet * | sc_packet_iov_packed_end (struct sc_packet *pkt, unsigned iov_i) |
Variables | |
| uint16_t | ps_next_offset |
| uint8_t | ps_pkt_start_offset |
| uint8_t | ps_flags |
| uint16_t | ps_cap_len |
| uint16_t | ps_orig_len |
| uint32_t | ps_ts_sec |
| uint32_t | ps_ts_nsec |
sc_packed_packet: The packed-stream encapsulation.
| #define SC_PS_FLAG_BAD_FCS 0x4 |
Mask for sc_packed_packet flags, bad FCS
| #define SC_PS_FLAG_BAD_L3_CSUM 0x10 |
Mask for sc_packed_packet flags, bad layer 3 checksum
| #define SC_PS_FLAG_BAD_L4_CSUM 0x8 |
Mask for sc_packed_packet flags, bad layer 4 checksum
| #define SC_PS_FLAG_CLOCK_IN_SYNC 0x2 |
Mask for sc_packed_packet flags, clock in sync
| #define SC_PS_FLAG_CLOCK_SET 0x1 |
Mask for sc_packed_packet flags, clock set
|
static |
Iterate from one packed-stream header to the next.
| ps_pkt | A packed-stream packet header |
|
inlinestatic |
Return a pointer to the packet payload.
| ps_pkt | A packed-stream packet header |
|
static |
Return a pointer to the end of a packed-stream buffer.
| pkt | An sc_packet containing packed-stream encoded packets |
|
static |
Return the first packet header in a packed-stream buffer.
| pkt | An sc_packet containing packed-stream encoded packets |
| uint16_t ps_cap_len |
Number of bytes of packet payload stored.
| uint8_t ps_flags |
SC_PS_FLAG_* flags.
| uint16_t ps_next_offset |
Offset of next packet from start of this struct.
| uint16_t ps_orig_len |
Original length of the frame.
| uint8_t ps_pkt_start_offset |
Offset of packet payload from start of this struct.
| uint32_t ps_ts_nsec |
Timestamp (nanoseconds).
| uint32_t ps_ts_sec |
Timestamp (seconds).