10 #ifndef __SOLAR_CAPTURE_STREAM_H__
11 #define __SOLAR_CAPTURE_STREAM_H__
43 const struct sc_attr* attr,
struct sc_session* scs);
125 const char* dhost,
const char* dport);
138 const char* shost,
const char* sport);
int sc_stream_eth_vlan_id(struct sc_stream *stream, int vlan_id)
Configure this stream to capture all packets with the matching VLAN ID.
int sc_stream_ip_source_host(struct sc_stream *stream, const char *shost)
Configure this stream to capture all packets with matching source hostname.
int sc_stream_reset(struct sc_stream *stream)
Remove all stream filters.
int sc_stream_alloc(struct sc_stream **stream_out, const struct sc_attr *attr, struct sc_session *scs)
Create a new stream object for this session.
int sc_stream_ip_source_hostport(struct sc_stream *stream, const char *shost, const char *sport)
Configure this stream to capture all packets with the matching protocol, source hostname and source p...
int sc_stream_set_str(struct sc_stream *stream, const char *str)
Configure the stream to capture all packets matching the specified filter string. This is the preferr...
int sc_stream_mismatch(struct sc_stream *stream)
Configure this stream to capture all packets that haven't been caught by another stream and are not r...
int sc_stream_eth_type(struct sc_stream *stream, uint16_t eth_type)
Configrue this stream to capture all packets with the matching ethernet type.
int sc_stream_ip_dest_hostport(struct sc_stream *stream, int protocol, const char *dhost, const char *dport)
Configure this stream to capture all packets with the matching protocol, destination hostname and des...
int sc_stream_free(struct sc_stream *stream)
Free a previously created stream.
int sc_stream_eth_shost(struct sc_stream *stream, const uint8_t *mac_addr)
Configure this stream to capture all packets with the matching source MAC address.
int sc_stream_ip_protocol(struct sc_stream *stream, int protocol)
Configure this stream to capture all packets with matching IP protocol.
int sc_stream_eth_dhost(struct sc_stream *stream, const uint8_t *mac_addr)
Configure this stream to capture all packets with the matching destination MAC address.
int sc_stream_all(struct sc_stream *stream)
Configure this stream to capture all packets that haven't been caught by another stream.
int sc_stream_ip_source_port(struct sc_stream *stream, const char *sport)
Configure this stream to capture all packets with matching source port.
int sc_stream_ip_dest_port(struct sc_stream *stream, const char *dport)
Configure this stream to capture all packets with matching destination port.
int sc_stream_ip_dest_host(struct sc_stream *stream, const char *dhost)
Configure this stream to capture all packets with matching destination hostname.