@mark1russell7/harness 0.16.2 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -321,17 +321,19 @@ A cell applies its fault with `Lab.fault` and removes it with `Lab.lift`. A prog
321
321
  | Option | Fault | Rule | Default |
322
322
  | --- | --- | --- | --- |
323
323
  | `direction`: `in`, `out` | `blackhole`, `reject` | `in` faces what comes from the peer, `out` what goes to it. At a router, `out` is `-o DEV -d PEER`. | both for a black hole, `in` for a reject |
324
- | `protocol`: `tcp`, `udp`, `icmp`, `all` | `blackhole`, `reject` | `-p` and the protocol, or no match for `all` | `all` for a black hole, `tcp` for a reject |
324
+ | `protocol`: `tcp`, `udp`, `icmp`, `all` | `blackhole`, `reject`, `mtu` | `-p` and the protocol, or no match for `all` | `all` for a black hole, `tcp` for a reject and an MTU drop |
325
325
  | `code`: `host`, `net`, `port`, `admin` | `reject` | the ICMP unreachable of the answer | none: a reject needs a code |
326
326
  | `above` | `mtu` | the longest segment that passes, in bytes | none: an MTU drop needs a length |
327
- | `handshake`: `pass` | `rst` | `! --syn`: each SYN passes, and the next segment gets the reset | the SYN also gets the reset |
327
+ | `handshake`: `pass` | `rst` | `! --syn` and a `u32` test of data: each SYN and each segment with no data passes, and the first segment with data gets the reset | the SYN also gets the reset |
328
328
  | `peers` | each fault except `silence` | the addresses that the rules face, in one commit | the peer of the place |
329
329
 
330
- The injector refuses `protocol` on a fault other than a black hole or a reject. It refuses `handshake` on a fault other than a reset.
330
+ The injector refuses `protocol` on a fault other than a black hole, a reject or an MTU drop. An MTU drop with `all` is a real black hole. Thus a path-MTU search with ping also sees it. The injector refuses `handshake` on a fault other than a reset.
331
331
 
332
332
  - **A silence** (`silence`) at a hop drops each packet of the namespace of the hop, in INPUT, OUTPUT and FORWARD, in one commit. The links stay up and ARP continues. Thus a connect through a silent router times out, and the router sends no answer. A silence names no peer and takes no option. It acts only at a hop, and the side of the hop has no effect.
333
333
  - **A host that is down behind a router** is a reject at the router toward the target, with `direction: "out"` and `protocol: "all"`. The router answers each packet that it forwards to the host with the ICMP unreachable of `code`.
334
- - **A reset after the handshake** is a reset with `handshake: "pass"`. The connect succeeds, and the first segment after it gets the reset. Thus a TLS client sees `ECONNRESET` in its handshake.
334
+ - **A reset after the handshake** is a reset with `handshake: "pass"`. The connect succeeds, and the last ACK of the handshake passes. Thus the target accepts the connection, and the first segment with data gets the reset. A TLS client sees `ECONNRESET` in its handshake.
335
+
336
+ The `u32` test reads the length of each header from the packet. It does not match an IP header of an even number of words. A header with no options has 5 words, and the labs send no options.
335
337
 
336
338
  ## The measurement
337
339
 
package/build/index.d.ts CHANGED
@@ -882,16 +882,20 @@ interface FaultOptions {
882
882
  */
883
883
  readonly direction?: "in" | "out";
884
884
  /**
885
- * This protocol limits a black hole or a reject. A black hole without it drops each protocol. A
886
- * reject without it rejects only TCP. The value `all` acts on each protocol.
885
+ * This protocol limits a black hole, a reject or an MTU drop. A black hole without it drops each
886
+ * protocol. A reject or an MTU drop without it acts only on TCP. The value `all` acts on each
887
+ * protocol. An MTU drop with `all` is a real black hole.
888
+ * Thus a path-MTU search with ping also sees it.
887
889
  */
888
890
  readonly protocol?: "tcp" | "udp" | "icmp" | "all";
889
891
  readonly code?: "host" | "net" | "port" | "admin";
890
892
  /** This length is the longest segment in bytes that an MTU drop lets through. */
891
893
  readonly above?: number;
892
894
  /**
893
- * This value lets each SYN of a reset pass. The connect then succeeds, and the next segment of
894
- * the peer gets the reset. Without it, the SYN also gets the reset.
895
+ * This value lets each SYN of a reset pass, and each segment with no data. The connect then
896
+ * succeeds, the target accepts the connection, and the first segment of the peer with data gets
897
+ * the reset. Without it, the SYN also gets the reset. The match needs an IP header of an odd
898
+ * number of words: a header with no options has 5, as in each lab.
895
899
  */
896
900
  readonly handshake?: "pass";
897
901
  /** These are the addresses that the rule faces, in place of the peer of its place. */