Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (G)ARP sender to fix switch broadcast storms #413

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Dec 19, 2017

  1. pkt-gen: -G for (G)ARP to prevent switch broadcast storms

    Needed to maintain {mac:ip} assocation on the switch port. This likely
    fixes many of the reported pkt-gen issues.
    
    Also added PHY link state poll ("auto wait") when '-w0' is specified.
    markwebster committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    b705f7b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bae22b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16f4bb1 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2017

  1. Configuration menu
    Copy the full SHA
    b40972c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06832d3 View commit details
    Browse the repository at this point in the history
  3. 4 Configuration menu
    Copy the full SHA
    7dc6dc0 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2017

  1. Configuration menu
    Copy the full SHA
    451452e View commit details
    Browse the repository at this point in the history
  2. Optimised send_packets() check for slots dirtied by ARP packets.

    The check is now only done on thread 0, and before touching the
    slot buffer we check if slot->len == sizeof(ARP packet), ie 42,
    whereas the smallest packet size pkt-gen does without crashing
    is 50. (This commit also includes a better minimum packet size
    constraint for the -l argument).
    
    Some related code has been tidied up, and I've added #defines
    for IPv4 and MAC address sizes (IP4_ALEN, ETH_ALEN) to get rid
    of some magic numbers.
    markwebster committed Dec 31, 2017
    Configuration menu
    Copy the full SHA
    1cbb603 View commit details
    Browse the repository at this point in the history