class IE_APN(gtp.IE_Base): name = "IE APN" fields_desc = [ByteEnumField("ietype", 71, IEType), ShortField("length", None), BitField("CR_flag", 0, 4), BitField("instance", 0, 4), gtp.APNStrLenField("APN", "internet", length_from=lambda x: x.length)]
class IE_APN(gtp.IE_Base): name = "IE APN" fields_desc = [ ByteEnumField("ietype", 71, IEType), FieldLenField("length", None, length_of="APN", adjust=lambda pkt, x: x + 4, fmt="H"), BitField("CR_flag", 0, 4), BitField("instance", 0, 4), gtp.APNStrLenField("APN", "internet", length_from=lambda x: x.length) ]