capfileconvert_example.h Source File
Reference Documentation
- Platform
- Intel® PAC
- Napatech SmartNIC
- Content Type
- Reference Information
- Capture Software Version
- Link™ Capture Software 12.10
Napatech Software Suite: examples/net/capfileconvert/capfileconvert_example.h Source File
Go to the documentation of this file. 49 #ifndef __CAPFILECONVERT_H__ 50 #define __CAPFILECONVERT_H__ 54 "The capfileconvert tool is used to convert to/from 3GD capture file format\n" 57 " capfileconvert -i <file> -o <file> --outputformat=<format> [--inputformat=<format>] [--verbose] [--help]\n",
61 "When using a Napatech adapter to capture in pcap format either by using libpcap \n" 62 "or capturing directly in pcap (using the capture tool) by setting: \n" 64 "TimestampFormat = PCAP | PCAP_NS\n" 65 "PacketDescriptor = PCAP\n" 67 "The captured data will be captured in a slightly changed pcap format. When capturing \n" 68 "using libpcap a 4 bytes crc will be added to the end of each packet and be a part of len\n" 69 "and caplen. When capturing directly in pcap format using the capture tool a 4 byte crc \n" 70 "and an 8 byte alignment padding is added to each packet. The crc is a part of len and both crc \n" 71 "and padding are a part of caplen. This means that caplen can be larger than len. \n" 73 "By converting the capture file using capfileconvert the crc and padding can be removed \n" 74 "from the pcap file, but as the ntpcap additions is not easily detected, it is necessary to \n" 75 "state the input format when converting a pcap file to either another pcap file (remove crc and padding) \n" 76 "or to a nt3gd file. \n" 79 "Most pcap applications does not care about the added crc and padding. But some does and it can\n" 80 "be necessary to remove the crc and padding.\n" 82 "Captured by Format Input Content\n" 83 "LibPCAP using a standard adapter --inputformat=libpcap Native PCAP format.\n" 87 "LibPCAP using a Napatech adapter --inputformat=ntpcap Napatech PCAP format.\n" 88 " len: Including a 4 byte CRC\n" 89 " caplen: Including a 4 byte CRC\n" 91 "LibPCAP using a Napatech adapter --inputformat=ntpcap Napatech PCAP format.\n" 92 "TimestampFormat = PCAP | PCAP_NS len: Including a 4 byte CRC\n" 93 "PacketDescriptor = PCAP caplen: Including a four bytes CRC\n" 94 " and eight bytes alignment padding\n" 97 "Converting to/from pcap will result in descriptor info loss due to the very\n" 98 "simple pcap header.\n" 101 "* capfileconvert -i src.cap -o dest.cap --outputformat=pcap\n" 102 " Convert to pcap\n\n" 103 "* capfileconvert -i src.cap -o dest.cap --outputformat=nt3gd\n" 104 " Convert to nt3gd from 2gd\n\n" 105 "* capfileconvert -i pcap.cap -o nt3gd.cap --outputformat=nt3gd --inputformat=ntpcap\n" 106 " Convert to nt3gd from Napatech pcap format\n\n" 107 "* capfileconvert -i pcap.cap -o nt3gd.cap --outputformat=nt3gd --inputformat=libpcap\n" 108 " Convert to nt3gd from libpcap pcap format\n\n" 109 "* capfileconvert -i pcapin.cap -o pcapout.cap --outputformat=pcap --inputformat=ntpcap\n" 110 " Convert to pcap from Napatech pcap format\n\n" 111 "* capfileconvert -i pcapin.cap -o pcapout.cap --outputformat=pcap --inputformat=libpcap\n" 112 " Convert to pcap from pcap format (For example from pcapnano to pcap)\n",