The current implementation supports forwarding only ICMP Echo(ping) packets, as OS not allow to send arbitrary packets without escalating privileges. All other ICMP packets are dropped(ignored)
Changes in 'icmp_packet.go' and 'icmp.go' was mostly maded by cursor.
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
This commit adds two tests:
1. Upload files to the VM This test uploads three files of different sizes (10M, 100M, 1G) to the running VM and verifies the sha256sum of the uploaded files.
2. Download the above files from the VM This test downloads the three files uploaded in the previous test and verifies their sha256sum values.
Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
Adds a basic implementation for testing against a vfkit VM. Tests are based on the existing qemu version. It just changes the way the VM gets created/started.
It also adds a func to decompress .gz files as the fcos release for apple hypervisor is raw.gz format
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>