Namespaces | |
| namespace | Shark_libs::data2pcap |
| namespace | data2pcap |
| Allows to pack raw data into a form of fake packets and write them to a pcap file. | |
Functions | |
| def | Shark_libs::data2pcap::print_hexa_raw |
| Prints hexadecimal string to a file. | |
| def | Shark_libs::data2pcap::hexa_byteswapper |
| Swaps bytes in the source hexadecimal string. | |
| def | Shark_libs::data2pcap::get_hexa_unixtime |
| Returns actual time in the unix timeformat recalculated to hexadecimal, without leading 0x. | |
| def | Shark_libs::data2pcap::get_bytelength |
| Computes length of the hexadecimal string(in bytes). | |
| def | Shark_libs::data2pcap::hexa_padd8x |
| Removes leading 0x and adds leading zeros to padd hex number to format XXXXXXXX. | |
| def | Shark_libs::data2pcap::hexa_padd4x |
| Removes leading 0x and adds leading zeros to padd hex number to format XXXX. | |
| def | Shark_libs::data2pcap::checksum |
| Computes a one's complement checksum for the IP packet header. | |
| def | Shark_libs::data2pcap::create_pcap_global_hdr |
| Creates a pcap global header in form of a packed python struct. | |
| def | Shark_libs::data2pcap::create_pcap_pckt_hdr |
| Creates a pcap packet header in form of a packed python struct. | |
| def | Shark_libs::data2pcap::create_eth_hdr |
| Creates an ethernet header in form of a packed python struct. | |
| def | Shark_libs::data2pcap::pack_ip |
| Transforms IP address from a string to the packed python struct. | |
| def | Shark_libs::data2pcap::create_ip_hdr |
| Creates an IP header in a form of a packed python struct. | |
| def | Shark_libs::data2pcap::create_udp_hdr |
| Creates a UDP header in a form of a packed python struct. | |
| def | Shark_libs::data2pcap::create_tcp_hdr |
| Creates a TCP header in a form of a packed python struct. | |
| def | Shark_libs::data2pcap::init_pcap_file |
| Writes a pcap global header to a file. | |
| def | Shark_libs::data2pcap::convert_data_to_pcap |
| Creates all necessary fake headers and wraps up the raw data with it. | |
| def | Shark_libs::data2pcap::merge_headers_and_data |
| Creates all necessary fake headers and wraps up the raw data with it. | |
| def | Shark_libs::data2pcap::remove_global_header |
| Removes the pcap global header from the fake packet. | |
| def | Shark_libs::data2pcap::save_pcap_packet_to_pcap_file |
| Saves the fake packet to a pcap file. | |
| def | Shark_libs::data2pcap::update_tcp_control_length |
| Updates the TCP sequence number. | |
Variables | |
| int | Shark_libs::data2pcap::eth_hdr_size = 14 |
| size of ethernet header in bytes | |
| int | Shark_libs::data2pcap::ip_hdr_size = 20 |
| size of IP header in bytes | |
| int | Shark_libs::data2pcap::tcp_hdr_size = 20 |
| size of TCP header in bytes | |
| int | Shark_libs::data2pcap::udp_hdr_size = 8 |
| size of UDP header in bytes | |
| int | Shark_libs::data2pcap::pcap_glob_hdr_size = 24 |
| size of pcap global header in bytes | |
| int | Shark_libs::data2pcap::pcap_pckt_hdr_size = 16 |
| size of pcap local header in bytes | |
| tuple | Shark_libs::data2pcap::ip_pack_proto_udp = int('11',16) |
| Reusable field used in a few different headers. | |
| tuple | Shark_libs::data2pcap::ip_pack_proto_tcp = int('06',16) |
| Reusable field used in a few different headers. | |
1.5.8