PacketRouter routes packets between Upstream and ICMPRouter. Currently it rejects all other type of ICMP packets
| 22 | |
| 23 | // PacketRouter routes packets between Upstream and ICMPRouter. Currently it rejects all other type of ICMP packets |
| 24 | type PacketRouter struct { |
| 25 | icmpRouter ICMPRouter |
| 26 | muxer muxer |
| 27 | connIndex uint8 |
| 28 | logger *zerolog.Logger |
| 29 | encoder *packet.Encoder |
| 30 | decoder *packet.ICMPDecoder |
| 31 | } |
| 32 | |
| 33 | // NewPacketRouter creates a PacketRouter that handles ICMP packets. Packets are read from muxer but dropped if globalConfig is nil. |
| 34 | func NewPacketRouter(icmpRouter ICMPRouter, muxer muxer, connIndex uint8, logger *zerolog.Logger) *PacketRouter { |
nothing calls this directly
no outgoing calls
no test coverage detected