1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
12 ******************************************************************************/
14 import from GTPv2_Types all;
18 const octetstring input := '482400410000831E00CB9A00490001000556000D001842F099460142F09900007B014D000200080057001900CA0AF000011F00080A20011B70828834080000000000000009'O
20 testcase dec() runs on gtp
22 var PDU_GTPCv2 gtpc := dec_PDU_GTPCv2(input);
24 if (ispresent(gtpc.gtpcv2_pdu.deleteSessionRequest.fullyQualifiedTEID)) { setverdict(pass); }
25 else { setverdict(fail); }
27 var octetstring reencode := enc_PDU_GTPCv2(gtpc);
28 if (reencode != input) { setverdict(fail, "decode+encode does not match original"); }