Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0529186 authored by Jing Min Zhao's avatar Jing Min Zhao Committed by David S. Miller
Browse files

[NETFILTER]: nf_conntrack_h323: fix ASN.1 types



1. Add support for decoding IPv6 address. I know it was manually added in
   the header file, but not in the template file. That wouldn't work.
2. Add missing support for decoding T.120 address in OLCA.
3. Remove unnecessary decoding of Information signal.

Signed-off-by: default avatarJing Min Zhao <zhaojingmin@vivecode.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25b86e05
Loading
Loading
Loading
Loading
+3 −20
Original line number Original line Diff line number Diff line
/* Generated by Jing Min Zhao's ASN.1 parser, Apr 20 2006
/* Generated by Jing Min Zhao's ASN.1 parser, May 16 2007
 *
 *
 * Copyright (c) 2006 Jing Min Zhao <zhaojingmin@users.sourceforge.net>
 * Copyright (c) 2006 Jing Min Zhao <zhaojingmin@users.sourceforge.net>
 *
 *
@@ -12,7 +12,7 @@ typedef struct TransportAddress_ipAddress { /* SEQUENCE */


typedef struct TransportAddress_ip6Address {	/* SEQUENCE */
typedef struct TransportAddress_ip6Address {	/* SEQUENCE */
	int options;		/* No use */
	int options;		/* No use */
	unsigned ip6;
	unsigned ip;
} TransportAddress_ip6Address;
} TransportAddress_ip6Address;


typedef struct TransportAddress {	/* CHOICE */
typedef struct TransportAddress {	/* CHOICE */
@@ -364,23 +364,6 @@ typedef struct Alerting_UUIE { /* SEQUENCE */
	Alerting_UUIE_fastStart fastStart;
	Alerting_UUIE_fastStart fastStart;
} Alerting_UUIE;
} Alerting_UUIE;


typedef struct Information_UUIE_fastStart {	/* SEQUENCE OF */
	int count;
	OpenLogicalChannel item[30];
} Information_UUIE_fastStart;

typedef struct Information_UUIE {	/* SEQUENCE */
	enum {
		eInformation_UUIE_callIdentifier = (1 << 31),
		eInformation_UUIE_tokens = (1 << 30),
		eInformation_UUIE_cryptoTokens = (1 << 29),
		eInformation_UUIE_fastStart = (1 << 28),
		eInformation_UUIE_fastConnectRefused = (1 << 27),
		eInformation_UUIE_circuitInfo = (1 << 26),
	} options;
	Information_UUIE_fastStart fastStart;
} Information_UUIE;

typedef struct FacilityReason {	/* CHOICE */
typedef struct FacilityReason {	/* CHOICE */
	enum {
	enum {
		eFacilityReason_routeCallToGatekeeper,
		eFacilityReason_routeCallToGatekeeper,
@@ -471,7 +454,6 @@ typedef struct H323_UU_PDU_h323_message_body { /* CHOICE */
		CallProceeding_UUIE callProceeding;
		CallProceeding_UUIE callProceeding;
		Connect_UUIE connect;
		Connect_UUIE connect;
		Alerting_UUIE alerting;
		Alerting_UUIE alerting;
		Information_UUIE information;
		Facility_UUIE facility;
		Facility_UUIE facility;
		Progress_UUIE progress;
		Progress_UUIE progress;
	};
	};
@@ -561,6 +543,7 @@ typedef struct OpenLogicalChannelAck { /* SEQUENCE */
	} options;
	} options;
	OpenLogicalChannelAck_reverseLogicalChannelParameters
	OpenLogicalChannelAck_reverseLogicalChannelParameters
	    reverseLogicalChannelParameters;
	    reverseLogicalChannelParameters;
	NetworkAccessParameters separateStack;
	OpenLogicalChannelAck_forwardMultiplexAckParameters
	OpenLogicalChannelAck_forwardMultiplexAckParameters
	    forwardMultiplexAckParameters;
	    forwardMultiplexAckParameters;
} OpenLogicalChannelAck;
} OpenLogicalChannelAck;
+13 −18
Original line number Original line Diff line number Diff line
/* Generated by Jing Min Zhao's ASN.1 parser, Apr 20 2006
/* Generated by Jing Min Zhao's ASN.1 parser, May 16 2007
 *
 *
 * Copyright (c) 2006 Jing Min Zhao <zhaojingmin@users.sourceforge.net>
 * Copyright (c) 2006 Jing Min Zhao <zhaojingmin@users.sourceforge.net>
 *
 *
@@ -37,7 +37,7 @@ static field_t _TransportAddress_ipxAddress[] = { /* SEQUENCE */


static field_t _TransportAddress_ip6Address[] = {	/* SEQUENCE */
static field_t _TransportAddress_ip6Address[] = {	/* SEQUENCE */
	{FNAME("ip") OCTSTR, FIXD, 16, 0, DECODE,
	{FNAME("ip") OCTSTR, FIXD, 16, 0, DECODE,
	 offsetof(TransportAddress_ip6Address, ip6), NULL},
	 offsetof(TransportAddress_ip6Address, ip), NULL},
	{FNAME("port") INT, WORD, 0, 0, SKIP, 0, NULL},
	{FNAME("port") INT, WORD, 0, 0, SKIP, 0, NULL},
};
};


@@ -67,7 +67,8 @@ static field_t _TransportAddress[] = { /* CHOICE */
	{FNAME("ipxAddress") SEQ, 0, 3, 3, SKIP, 0,
	{FNAME("ipxAddress") SEQ, 0, 3, 3, SKIP, 0,
	 _TransportAddress_ipxAddress},
	 _TransportAddress_ipxAddress},
	{FNAME("ip6Address") SEQ, 0, 2, 2, DECODE | EXT,
	{FNAME("ip6Address") SEQ, 0, 2, 2, DECODE | EXT,
	offsetof(TransportAddress, ip6Address), _TransportAddress_ip6Address},
	 offsetof(TransportAddress, ip6Address),
	 _TransportAddress_ip6Address},
	{FNAME("netBios") OCTSTR, FIXD, 16, 0, SKIP, 0, NULL},
	{FNAME("netBios") OCTSTR, FIXD, 16, 0, SKIP, 0, NULL},
	{FNAME("nsap") OCTSTR, 5, 1, 0, SKIP, 0, NULL},
	{FNAME("nsap") OCTSTR, 5, 1, 0, SKIP, 0, NULL},
	{FNAME("nonStandardAddress") SEQ, 0, 2, 2, SKIP, 0,
	{FNAME("nonStandardAddress") SEQ, 0, 2, 2, SKIP, 0,
@@ -638,7 +639,8 @@ static field_t _UnicastAddress_iPXAddress[] = { /* SEQUENCE */
};
};


static field_t _UnicastAddress_iP6Address[] = {	/* SEQUENCE */
static field_t _UnicastAddress_iP6Address[] = {	/* SEQUENCE */
	{FNAME("network") OCTSTR, FIXD, 16, 0, SKIP, 0, NULL},
	{FNAME("network") OCTSTR, FIXD, 16, 0, DECODE,
	 offsetof(UnicastAddress_iP6Address, network), NULL},
	{FNAME("tsapIdentifier") INT, WORD, 0, 0, SKIP, 0, NULL},
	{FNAME("tsapIdentifier") INT, WORD, 0, 0, SKIP, 0, NULL},
};
};


@@ -665,8 +667,8 @@ static field_t _UnicastAddress[] = { /* CHOICE */
	 offsetof(UnicastAddress, iPAddress), _UnicastAddress_iPAddress},
	 offsetof(UnicastAddress, iPAddress), _UnicastAddress_iPAddress},
	{FNAME("iPXAddress") SEQ, 0, 3, 3, SKIP | EXT, 0,
	{FNAME("iPXAddress") SEQ, 0, 3, 3, SKIP | EXT, 0,
	 _UnicastAddress_iPXAddress},
	 _UnicastAddress_iPXAddress},
	{FNAME("iP6Address") SEQ, 0, 2, 2, SKIP | EXT, 0,
	{FNAME("iP6Address") SEQ, 0, 2, 2, DECODE | EXT,
	 _UnicastAddress_iP6Address},
	 offsetof(UnicastAddress, iP6Address), _UnicastAddress_iP6Address},
	{FNAME("netBios") OCTSTR, FIXD, 16, 0, SKIP, 0, NULL},
	{FNAME("netBios") OCTSTR, FIXD, 16, 0, SKIP, 0, NULL},
	{FNAME("iPSourceRouteAddress") SEQ, 0, 4, 4, SKIP | EXT, 0,
	{FNAME("iPSourceRouteAddress") SEQ, 0, 4, 4, SKIP | EXT, 0,
	 _UnicastAddress_iPSourceRouteAddress},
	 _UnicastAddress_iPSourceRouteAddress},
@@ -984,19 +986,12 @@ static field_t _Alerting_UUIE[] = { /* SEQUENCE */
	{FNAME("featureSet") SEQ, 3, 4, 4, SKIP | EXT | OPT, 0, NULL},
	{FNAME("featureSet") SEQ, 3, 4, 4, SKIP | EXT | OPT, 0, NULL},
};
};


static field_t _Information_UUIE_fastStart[] = {	/* SEQUENCE OF */
	{FNAME("item") SEQ, 1, 3, 5, DECODE | OPEN | EXT,
	 sizeof(OpenLogicalChannel), _OpenLogicalChannel}
	,
};

static field_t _Information_UUIE[] = {	/* SEQUENCE */
static field_t _Information_UUIE[] = {	/* SEQUENCE */
	{FNAME("protocolIdentifier") OID, BYTE, 0, 0, SKIP, 0, NULL},
	{FNAME("protocolIdentifier") OID, BYTE, 0, 0, SKIP, 0, NULL},
	{FNAME("callIdentifier") SEQ, 0, 1, 1, SKIP | EXT, 0, NULL},
	{FNAME("callIdentifier") SEQ, 0, 1, 1, SKIP | EXT, 0, NULL},
	{FNAME("tokens") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("tokens") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("cryptoTokens") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("cryptoTokens") SEQOF, SEMI, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("fastStart") SEQOF, SEMI, 0, 30, DECODE | OPT,
	{FNAME("fastStart") SEQOF, SEMI, 0, 30, SKIP | OPT, 0, NULL},
	 offsetof(Information_UUIE, fastStart), _Information_UUIE_fastStart},
	{FNAME("fastConnectRefused") NUL, FIXD, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("fastConnectRefused") NUL, FIXD, 0, 0, SKIP | OPT, 0, NULL},
	{FNAME("circuitInfo") SEQ, 3, 3, 3, SKIP | EXT | OPT, 0, NULL},
	{FNAME("circuitInfo") SEQ, 3, 3, 3, SKIP | EXT | OPT, 0, NULL},
};
};
@@ -1343,9 +1338,7 @@ static field_t _H323_UU_PDU_h323_message_body[] = { /* CHOICE */
	 offsetof(H323_UU_PDU_h323_message_body, connect), _Connect_UUIE},
	 offsetof(H323_UU_PDU_h323_message_body, connect), _Connect_UUIE},
	{FNAME("alerting") SEQ, 1, 3, 17, DECODE | EXT,
	{FNAME("alerting") SEQ, 1, 3, 17, DECODE | EXT,
	 offsetof(H323_UU_PDU_h323_message_body, alerting), _Alerting_UUIE},
	 offsetof(H323_UU_PDU_h323_message_body, alerting), _Alerting_UUIE},
	{FNAME("information") SEQ, 0, 1, 7, DECODE | EXT,
	{FNAME("information") SEQ, 0, 1, 7, SKIP | EXT, 0, _Information_UUIE},
	 offsetof(H323_UU_PDU_h323_message_body, information),
	 _Information_UUIE},
	{FNAME("releaseComplete") SEQ, 1, 2, 11, SKIP | EXT, 0,
	{FNAME("releaseComplete") SEQ, 1, 2, 11, SKIP | EXT, 0,
	 _ReleaseComplete_UUIE},
	 _ReleaseComplete_UUIE},
	{FNAME("facility") SEQ, 3, 5, 21, DECODE | EXT,
	{FNAME("facility") SEQ, 3, 5, 21, DECODE | EXT,
@@ -1430,7 +1423,9 @@ static field_t _OpenLogicalChannelAck[] = { /* SEQUENCE */
	 DECODE | EXT | OPT, offsetof(OpenLogicalChannelAck,
	 DECODE | EXT | OPT, offsetof(OpenLogicalChannelAck,
				      reverseLogicalChannelParameters),
				      reverseLogicalChannelParameters),
	 _OpenLogicalChannelAck_reverseLogicalChannelParameters},
	 _OpenLogicalChannelAck_reverseLogicalChannelParameters},
	{FNAME("separateStack") SEQ, 2, 4, 5, SKIP | EXT | OPT, 0, NULL},
	{FNAME("separateStack") SEQ, 2, 4, 5, DECODE | EXT | OPT,
	 offsetof(OpenLogicalChannelAck, separateStack),
	 _NetworkAccessParameters},
	{FNAME("forwardMultiplexAckParameters") CHOICE, 0, 1, 1,
	{FNAME("forwardMultiplexAckParameters") CHOICE, 0, 1, 1,
	 DECODE | EXT | OPT, offsetof(OpenLogicalChannelAck,
	 DECODE | EXT | OPT, offsetof(OpenLogicalChannelAck,
				      forwardMultiplexAckParameters),
				      forwardMultiplexAckParameters),