aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder/ubuntu
AgeCommit message (Expand)AuthorFilesLines
2018-03-08CSIT-988: Add libmbedcrypto0 as a new vpp dependencyPeter Mikus2-1/+5
2017-10-23Update disk-image-builder scripts to allow IPv6selias8-79/+473
2017-08-01CSIT-727 Add the tcpdump application into the VIRL imagePeter Mikus5-3/+344
2017-06-29CSIT-687: Directory structure reorganizationTibor Frank8-1098/+1098
2017-02-23Add pypcap python requirementMatej Klotton3-1/+320
2017-02-23QemuUtil lib change to work with ubuntu and centosMatej Klotton2-1/+5
2017-01-02CSIT-488 TLDK jbb validation jobs need cmake installedpmikus4-1/+295
2016-12-01Add list of packages for ubuntu VIRL image 1.5pmikus2-0/+283
2016-11-30CSIT-467 Add libpcap-dev packages to VIRL imagepmikus4-6/+11
2016-10-13Update VIRL images to 16.04.1pmikus14-17/+889
2016-10-06CSIT-406: Add StrongSwan to VIRL TG image.Dave2-1/+5
2016-10-04Add JAVA_HOME and include Java in PATH environment variables.Carsten Koester4-0/+258
2016-10-04CSIT-192: Add bridge-utils, docker, java8 to VM imageCarsten Koester4-1/+267
2016-08-09Correct error in filename when fetching packages via launchpad APICarsten Koester1-1/+2
2016-06-19CSIT-154: Fetch superseded Ubuntu packages using Launchpad APICarsten Koester1-2/+10
2016-06-02CSIT-111: Add Packer based framework to auto-generate disk imagesCarsten Koester21-0/+1838
an> #include <vppinfra/mem.h> #include <vppinfra/lock.h> /** * @brief Known libpcap encap types * * These codes end up in the pcap file header. * If you decide to build a wireshark dissector, * you'll need to know that these codes are mapped * through the pcap_to_wtap_map[] array in .../wiretap/pcap-common.c. * * For example: * * { 280, WTAP_ENCAP_VPP }, * * A file with the officially-allocated vpp packet type PCAP_PACKET_TYPE_vpp * aka 280, will need a top-level dissector registered to * deal with WTAP_ENCAP_VPP [=206]. * * Something like so: * * dissector_add_uint("wtap_encap", WTAP_ENCAP_VPP, vpp_dissector_handle); * */ #define foreach_vnet_pcap_packet_type \ _ (null, 0) \ _ (ethernet, 1) \ _ (ppp, 9) \ _ (ip, 12) \ _ (hdlc, 104) \ _ (user0, 147) \ _ (user1, 148) \ _ (user2, 149) \ _ (user3, 150) \ _ (user4, 151) \ _ (user5, 152) \ _ (user6, 153) \ _ (user7, 154) \ _ (user8, 155) \ _ (user9, 156) \ _ (user10, 157) \ _ (user11, 158) \ _ (user12, 159) \ _ (user13, 160) \ _ (user14, 161) \ _ (user15, 162) \ _ (vpp, 280) \ typedef enum { #define _(f,n) PCAP_PACKET_TYPE_##f = (n), foreach_vnet_pcap_packet_type #undef _ } pcap_packet_type_t; #define foreach_pcap_file_header \ /** 0xa1b2c3d4 host byte order. \ 0xd4c3b2a1 => need to byte swap everything. */ \ _ (u32, magic) \ \ /** Currently major 2 minor 4. */ \ _ (u16, major_version) \ _ (u16, minor_version) \ \ /** 0 for GMT. */ \ _ (u32, time_zone) \ \ /** Accuracy of timestamps. Typically set to 0. */ \ _ (u32, sigfigs) \ \ /** Size of largest packet in file. */ \ _ (u32, max_packet_size_in_bytes) \ \ /** One of vnet_pcap_packet_type_t. */ \ _ (u32, packet_type) /** File header struct */ typedef struct { #define _(t, f) t f; foreach_pcap_file_header #undef _ } pcap_file_header_t; #define foreach_pcap_packet_header \ /** Time stamp in seconds */ \ _ (u32, time_in_sec) \ /** Time stamp in microseconds. */ \ _ (u32, time_in_usec) \ \ /** Number of bytes stored in file. */ \ _ (u32, n_packet_bytes_stored_in_file) \ /** Number of bytes in actual packet. */ \ _ (u32, n_bytes_in_packet) /** Packet header. */ typedef struct { #define _(t, f) t f; foreach_pcap_packet_header #undef _ /** Packet data follows. */ u8 data[0]; } pcap_packet_header_t; /** * @brief PCAP main state data structure */ typedef struct { /** spinlock to protect e.g. pcap_data */ clib_spinlock_t lock; /** File name of pcap output. */ char *file_name; /** Number of packets to capture. */ u32 n_packets_to_capture; /** Packet type */ pcap_packet_type_t packet_type; /** Number of packets currently captured. */ u32 n_packets_captured; /** flags */ u32 flags; #define PCAP_MAIN_INIT_DONE (1 << 0) /** File descriptor for reading/writing. */ int file_descriptor; /** Bytes written */ u32 n_pcap_data_written; /** Vector of pcap data. */ u8 *pcap_data; /** Packets read from file. */ u8 **packets_read; /** Timestamps */ u64 *timestamps; /** Min/Max Packet bytes */ u32 min_packet_bytes, max_packet_bytes; } pcap_main_t; #define PCAP_DEF_PKT_TO_CAPTURE (100) #endif /* included_vppinfra_pcap_h */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */