@mark1russell7/harness 0.16.3 → 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
@@ -324,14 +324,16 @@ A cell applies its fault with `Lab.fault` and removes it with `Lab.lift`. A prog
324
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
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
@@ -892,8 +892,10 @@ interface FaultOptions {
892
892
  /** This length is the longest segment in bytes that an MTU drop lets through. */
893
893
  readonly above?: number;
894
894
  /**
895
- * This value lets each SYN of a reset pass. The connect then succeeds, and the next segment of
896
- * 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.
897
899
  */
898
900
  readonly handshake?: "pass";
899
901
  /** These are the addresses that the rule faces, in place of the peer of its place. */