Repository navigation
Conversation
| tokio = { version = "1.35", features = [ | ||
| "rt-multi-thread", | ||
| ], default-features = false } | ||
| packet = "0.1.4" |
There was a problem hiding this comment.
I am hesitant to use this dependency even in the examples since it is left unmaintained.
|
It is better to create two types for the Since ICMP is not primarily designed to transfer data, we have to create an enum that supports the most useful types of ICMP in the IpStack usage scenarios, such as Echo. |
|
Something like this? Lines 12 to 17 in 670226a |
|
I think providing the raw packet produced by tun for all the other cases other than tcp and udp has the maximum flexible because we may want to do the following things:
Even for Icmp packet, if we pre-process it to produce |
|
@xmh0511: could you please check examples/tun.rs in the main branch? https://github.com/narrowlink/ipstack/blob/main/examples/tun.rs#L113-L134
|
|
@SajjadPourali I have tried the latest version. Currently, in the branch |
True, there also another one that called UnknownNetwork that is similar to the raw that you mentioned. |

No description provided.