A failed IP router. Simply discards all packets it receives, and that's all.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Default value | Description |
---|---|---|---|
namid | int | -1 | |
routingFile | string | "" |
Name | Value | Description |
---|---|---|
node | ||
labels | node | |
display | i=abstract/router;i2=status/noentry |
Name | Direction | Size | Description |
---|---|---|---|
pppg [ ] | inout | ||
ethg [ ] | inout |
// // A failed \IP router. Simply discards all packets it receives, and that's all. // module FailedRouter { parameters: @node(); @labels(node); @display("i=abstract/router;i2=status/noentry"); int namid = default(-1); string routingFile = default(""); gates: inout pppg[] @labels(PPPFrame-conn); inout ethg[] @labels(EtherFrame-conn); submodules: dummy: Dummy { gates: in[sizeof(pppg)]; out[sizeof(pppg)]; ethIn[sizeof(ethg)]; ethOut[sizeof(ethg)]; } connections allowunconnected: for i=0..sizeof(pppg)-1 { pppg$i[i] --> dummy.in[i]; dummy.out[i] --> pppg$o[i]; } for i=0..sizeof(ethg)-1 { ethg$i[i] --> dummy.ethIn[i]; dummy.ethOut[i] --> ethg$o[i]; } }