))
);
-/// Parse a single DHCP option. When option 255 (END) is parsed, the remaining
-/// data will be consumed.
+// Parse a single DHCP option. When option 255 (END) is parsed, the remaining
+// data will be consumed.
named!(pub parse_option<DHCPOption>,
switch!(peek!(be_u8),
// End of options case. We consume the rest of the data
_ => call!(parse_generic_option)
));
-/// Parse and return all the options. Upon the end of option indicator
-/// all the data will be consumed.
+// Parse and return all the options. Upon the end of option indicator
+// all the data will be consumed.
named!(pub parse_all_options<Vec<DHCPOption>>, many0!(complete!(call!(parse_option))));
pub fn dhcp_parse(input: &[u8]) -> IResult<&[u8], DHCPMessage> {
Err(nom::Err::Error(error_position!(blob,ErrorKind::Custom(130))))
}
-/// parse an ASCII string that is null terminated
+// parse an ASCII string that is null terminated
named!(pub smb_get_ascii_string<Vec<u8>>,
do_parse!(
s: take_until_and_consume!("\x00")