Commit 360394c7 authored by baire's avatar baire
Browse files

support decoding of 'From'

parent a3ebf746
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -643,5 +643,19 @@ void Addr_Union::PreDecode (Buffer& buffer) throw (DecodeError)
	);
}

void From::PreDecodeField (int id, Buffer& buffer) throw (DecodeError)
{
	static Regex reg_semicolon ("^;");

	if (id == id_fromParams) {
		if(reg_semicolon.Match(buffer)) {
			Unsigned(8).Decode(buffer);
			SetHypFieldIsPresent (id, 1);
		} else {
			SetHypFieldIsPresent (id, 0);
		}
	}

}

}} // namespaces