-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
731 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
type ty = | ||
| Echo_reply | ||
| Destination_unreachable | ||
| Source_quench | ||
| Redirect | ||
| Echo_request | ||
| Time_exceeded | ||
| Parameter_problem | ||
| Timestamp_request | ||
| Timestamp_reply | ||
| Information_request | ||
| Information_reply | ||
|
||
val ty_to_string : ty -> string | ||
val int_to_ty : int -> ty option | ||
val ty_to_int : ty -> int | ||
|
||
type unreachable_reason = | ||
| Network_unreachable | ||
| Host_unreachable | ||
| Protocol_unreachable | ||
| Port_unreachable | ||
| Would_fragment | ||
| Source_route_failed | ||
| Destination_network_unknown | ||
| Destination_host_unknown | ||
| Source_host_isolated | ||
| Destination_net_prohibited | ||
| Destination_host_prohibited | ||
| TOS_network_unreachable | ||
| TOS_host_unreachable | ||
| Communication_prohibited | ||
| Host_precedence_violation | ||
| Precedence_insufficient | ||
|
||
val unreachable_reason_to_int : unreachable_reason -> int | ||
|
||
val sizeof_icmpv4 : int | ||
|
||
val get_ty : Cstruct.t -> int | ||
val set_ty : Cstruct.t -> int -> unit | ||
|
||
val get_code : Cstruct.t -> int | ||
val set_code : Cstruct.t -> int -> unit | ||
|
||
val get_checksum : Cstruct.t -> int | ||
val set_checksum : Cstruct.t -> int -> unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.