Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/nplab/packetdrill. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Nov 30, 2013
    • Neal Cardwell's avatar
      net-test: packetdrill MPLS support: parse MPLS label stacks in scripts · 5c32114d
      Neal Cardwell authored
      Code to parse script packets using an encapsulation layer that is an
      MPLS label stack.
      
      The syntax looks like:
      
        mpls (label 123, tc 1, [S], ttl 255) (label 456, tc 1, [S], ttl 255)
      
      This is borrowed from the syntax from tcpdump, which is:
      
        MPLS (label 123, exp 1, [S], ttl 255) (label 456, exp 1, [S], ttl 255)
      
      We use "tc" because RFC 5462 renamed the EXP ("experimental") field to
      the TC ("traffic class") field. We use lower-case "mpls" instead of
      "MPLS" for consistency with other packetdrill protocols, and for ease
      of typing.
      
      Change-Id: I2e797aead8605da9fe3f0461594cf7273d4ef0ec
      5c32114d
    • Neal Cardwell's avatar
      net-test: packetdrill MPLS support: appending MPLS headers to packets · 73371412
      Neal Cardwell authored
      Basic code for filling in MPLS headers and appending them to packets.
      
      Change-Id: Id31ef8e97de3e9b95c3b05ff42aade6a3d8490a5
      73371412
    • Neal Cardwell's avatar
      net-test: packetdrill MPLS support: MPLS header definitions · 98cdadbd
      Neal Cardwell authored
      Basic definitions for reading and writing MPLS label stacks.
      
      Change-Id: I4190b816082fe57a6cbececfee368aabeab57daa
      98cdadbd
    • Neal Cardwell's avatar
      net-test: packetdrill fix: add "recursion_control" field for big-endian GRE header · 695c0470
      Neal Cardwell authored
      The big endian folks would also need a recursion_control field too,
      now wouldn't they?
      
      Change-Id: Ie535241873d3a576d76993e14a803319e3c07250
      695c0470
    • Neal Cardwell's avatar
      net-test: packetdrill: support remote prefixes of arbitrary length · 8c2959a0
      Neal Cardwell authored
      Allow the --remote_ip config parameter to be a prefix, not just a
      single address. The entire remote prefix is routed to the tun device
      or remote packetdrill machine.
      
      The goal here is to all tests to use more than one remote IP. The
      immediate motivation is testing GRE, where there is a remote IP for
      the TCP endpoint and a separate remote IP for the GRE decapsulator.
      But eventually we'll also want to allow testing multiple concurrent
      TCP connections from multiple remote IPs addresses as well.
      
      Here are examples of the remote prefix you get for various values of
      the --remote_ip field. These are chosen for convenience and backwards
      compatibility with existing tests that are already using the
      --remote_ip parameter.
      
      o Default:
      
      configuration                      remote prefix
      ------------------------------     -----------------
      IPv4, no --remote_ip            -> 192.0.2.0/24   (default)
      v4/6, no --remote_ip            -> 192.0.2.0/24   (default)
      IPv6, no --remote_ip            -> 2001:DB8::0/32 (default)
      
      o Explicit IP without prefix length (prefix includes all bits):
      
      configuration                      remote prefix
      ------------------------------     -----------------
      IPv4 --remote_ip=10.248.0.3     -> 10.248.0.3/32
      v4/6 --remote_ip=10.248.0.3     -> 10.248.0.3/32
      IPv6 --remote_ip=2001:db8::3    -> 2001:db8::3/128
      
      o Explicit with prefix length:
      
      configuration                      remote prefix
      ------------------------------     -----------------
      IPv4 --remote_ip=10.248.0.3/16  -> 10.248.0.0/16
      v4/6 --remote_ip=10.248.0.3/16  -> 10.248.0.0/16
      IPv6 --remote_ip=2001:db8::3/16 -> 2001::0/16
      
      Change-Id: Ibc95c3419d66bcf1bbfd8a1fc7650d0003345ef2
      8c2959a0
    • Neal Cardwell's avatar
      net-test: packetdrill: support IP prefixes · e6223b9c
      Neal Cardwell authored
      The goal here is to be able to route a prefix of user-configurable
      size over the tun device or to the remote packetdrill server, so that
      tests can use more than one remote IP. The immediate motivation is
      testing GRE, where there is a remote IP for the TCP endpoint and a
      separate remote IP for the GRE decapsulator.
      
      Change-Id: I36b7025a242c3803802087c91d284a41c62ca1bd
      e6223b9c
    • Neal Cardwell's avatar
      net-test: packetdrill: support inet_addr() as an expression · 61a9eb03
      Neal Cardwell authored
      packetdrill already supported an inet_addr() as a part of a sockaddr
      expression (since that's how strace represents the sockaddr argument
      to connect(), for example). But now we also want to allow a
      stand-alone inet_addr() call, to allow the specification of IP
      addresses for other contexts.
      
      Change-Id: Ia69751030eff399e6b0d9cbb4a15530f0b721278
      61a9eb03
    • Neal Cardwell's avatar
      net-test: packetdrill: allow 32-bit system call parameters to be s32 or u32 · 42d20139
      Neal Cardwell authored
      To allow hexadecimal integers with the most significant bit set to be
      passed as system call parameters, we need to broaden the set of values
      acceptable to get_s32() to include u32.
      
      If this proves confusing, then at some point in the future we could
      rename this to be get_32() or something.
      
      Change-Id: I416f80f8c135306c6b64de8b700186d0b9a005c7
      42d20139
    • Neal Cardwell's avatar
      net-test: packetdrill: fix lexical scanning of hex integers · a49df526
      Neal Cardwell authored
      Properly recognize hex integers.
      
      Change-Id: I23b002e06ec21a445e66e82d47e72a65071b9a01
      a49df526
    • Neal Cardwell's avatar
      net-test: packetdrill encap support: tests for basic header printing · 281d8ab8
      Neal Cardwell authored
      Tests for basic support of printing encapsulation headers.
      
      Change-Id: I2a3e743db44493cb8b338943ab40fc96d9abf63c
      281d8ab8
    • Neal Cardwell's avatar
      net-test: packetdrill encap support: test GRE encap parsing · 51ac96f2
      Neal Cardwell authored
      Add simple coverage of IP/GRE encapsulation parsing.
      
      Change-Id: I5938edc521a387e0c72bbf547d2862077f6af204
      51ac96f2
  2. Nov 28, 2013
  3. Nov 18, 2013
  4. Nov 16, 2013
  5. Nov 11, 2013
  6. Aug 29, 2013
  7. Jul 29, 2013
  8. Jun 26, 2013
Loading