Skip to content

beshleman/vsock-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vsock-tests

This repo contains tools for testing vsock.

STREAM, DGRAM, and SEQPACKET are all supported.

On the server side, execute server.py:

usage: server.py [-h] [--fuzz] {stream,dgram,seqpacket} port

positional arguments:
  {stream,dgram,seqpacket}
  port

optional arguments:
  -h, --help            show this help message and exit
  --fuzz                Accept fuzzing clients. Defaults read size to 16KB

On the client side, execute client.py:

usage: client.py [-h] [--size SIZE] [--fuzz] [--threads THREADS]
                 [--timeout TIMEOUT]
                 {stream,dgram,seqpacket} cid port

positional arguments:
  {stream,dgram,seqpacket}
  cid
  port

optional arguments:
  -h, --help            show this help message and exit
  --size SIZE           The payload size
  --fuzz                Fuzz the socket. Arg --size defines maximum input size
  --threads THREADS     The number of threads
  --timeout TIMEOUT     The number of seconds to run the test

Example

# On host/server side
./server.py seqpacket 1234 --fuzz

# On guest/client side.
# Messages of length 1 of random bytes over seqpacket to CID 2 and port 1234.
./client.py seqpacket 2 1234 --fuzz --size 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published