ipscap.service package

IpSurv’s Module Index

ipscap.service.args_builder module

class ArgsBuilder(config, pipeline, ev_parser)

Bases: object

build_args(parent_parser, arguments)
fix_protocols(args)
init_args(arguments)
logging(args)
parse()

ipscap.service.dumpfile module

class DumpFile(pipeline)

Bases: object

get_file_num()
get_filename(ip_header, protocol_header, ext='.dat')
get_path()
initialize(dirname)
write(ip_header, protocol_header, append_header)

ipscap.service.eth_socket module

class EthSocket

Bases: object

ETH_LEN = 14
create_socket()
get_eth_header(data)
get_eth_ip(ifname)
get_eth_ips()
get_eth_ips_int()
get_ip_mtu(data)
is_enabled_protocol(eth_header)
recvfrom(bufsize)

ipscap.service.packet_filter module

class PacketFilter(ev_parser)

Bases: object

create_bytes_by_binary(data)
create_bytes_by_hex(data)
filter_packet(ip_header, protocol_header, args)
initialize(args)
prepare_find(args)
verify_capture(ip_header, protocol_header, args)
verify_condition(ip_header, protocol_header)
verify_find(ip_header, protocol_header, args)
verify_ip(ip_header, args)
verify_port(protocol_header, args)
verify_protocol(ip_header, args)

ipscap.service.protocol_service module

class ICMPProtocolService

Bases: ipscap.service.protocol_service.ProtocolService

create_decorated_protocol_header(protocol_header)
show_line(ip_header, protocol_header, now, passage_num, split=', ')
show_overview(ip_header, protocol_header, now, passage_num, output_raw)
show_payload(ip_header, protocol_header, output)
class ProtocolService

Bases: abc.ABC

add_raw(header, name, raw_name=None)
create_decorated_headers(ip_header, protocol_header)
create_decorated_ip_header(ip_header)
create_decorated_protocol_header(protocol_header)
get_all_data(ip_header, protocol_header)
get_base64_data(data)
get_datatime(now)
get_hex_data(data)
classmethod get_service(protocol)
get_timestamp(now)
label(v, n=16)
classmethod register_services(icmp_service, tcp_service, udp_service)
show_head(ip_header, now, passage_num)
show_line(ip_header, protocol_header, now, passage_num, split=', ')
show_middle(ip_header, protocol_header, show_data_len)
show_overview(ip_header, protocol_header, now, passage_num, output_raw)
show_payload(ip_header, protocol_header, output)
show_transfer(ip_header, protocol_header, passage_num, now, args)
class TCPProtocolService

Bases: ipscap.service.protocol_service.ProtocolService

create_decorated_protocol_header(protocol_header)
show_line(ip_header, protocol_header, now, passage_num, split=', ')
show_overview(ip_header, protocol_header, now, passage_num, output_raw)
class UDPProtocolService

Bases: ipscap.service.protocol_service.ProtocolService

create_decorated_protocol_header(protocol_header)
show_line(ip_header, protocol_header, now, passage_num, split=', ')
show_overview(ip_header, protocol_header, now, passage_num, output_raw)

ipscap.service.transfer_store module

class TransferStore

Bases: object

add(ip_header, protocol_header)
totalize(stat_group)
totalize_direction(rtransfer, transfer, direction)
totalize_groups(sorted_transfers, stat_group)

ipscap.service.view_helper module

class ViewHelper

Bases: object

TITLE_WIDTH = 120
get_border(length=120)
get_hex_data(data)
output_debug(ip_header, protocol_header)
output_error(e)
output_not_support(eth_header)
show_dumpfile_info(dumpfile)
show_filter_options(args)
show_head(args)
show_nofilters()
show_statistics(transfers, begin_tm, end_tm, args)
show_version()
stopped()