diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-10-12 10:12:55 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-10-12 10:12:55 -0700 |
commit | 55aa0b518107f6ebd18bfea758aa9d1ccd8201b6 (patch) | |
tree | 1fc4d62f52018b8f45cd169ac82c9bc1c415cb34 /pcap_datalink_val_to_name.3pcap | |
parent | e4d156e4966aff29a8ddb66b05f62c3fcc717be8 (diff) |
Clarify what the return values are for both success and failure.
Diffstat (limited to 'pcap_datalink_val_to_name.3pcap')
-rw-r--r-- | pcap_datalink_val_to_name.3pcap | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pcap_datalink_val_to_name.3pcap b/pcap_datalink_val_to_name.3pcap index 9d15b9f9..aa3e89a6 100644 --- a/pcap_datalink_val_to_name.3pcap +++ b/pcap_datalink_val_to_name.3pcap @@ -35,12 +35,20 @@ const char *pcap_datalink_val_to_description(int dlt); .SH DESCRIPTION .B pcap_datalink_val_to_name() translates a link-layer header type value to the corresponding -link-layer header type name. +link-layer header type name, which is the +.B DLT_ +name for the link-layer header type value with the +.B DLT_ +removed. .B NULL -is returned on failure. +is returned if the type value does not correspond to a known +.B DLT_ +value. .PP .B pcap_datalink_val_to_description() translates a link-layer header type value to a short description of that link-layer header type. .B NULL -is returned on failure. +is returned if the type value does not correspond to a known +.B DLT_ +value. |