@mark1russell7/harness 0.16.2 → 0.16.3
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 +2 -2
- package/build/index.d.ts +4 -2
- package/build/index.js.map +1 -1
- package/image/native/src/bin/inject.rs +38 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -321,13 +321,13 @@ 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
327
|
| `handshake`: `pass` | `rst` | `! --syn`: each SYN passes, and the next segment 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
|
|
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`.
|
package/build/index.d.ts
CHANGED
|
@@ -882,8 +882,10 @@ interface FaultOptions {
|
|
|
882
882
|
*/
|
|
883
883
|
readonly direction?: "in" | "out";
|
|
884
884
|
/**
|
|
885
|
-
* This protocol limits a black hole or
|
|
886
|
-
* reject without it
|
|
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";
|