Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
nf_conntrack_h323_asn1.c File Reference
#include <stdio.h>
#include <linux/netfilter/nf_conntrack_h323_asn1.h>
#include "nf_conntrack_h323_types.c"

Go to the source code of this file.

Data Structures

struct  field_t
 
struct  bitstr_t
 

Macros

#define H323_TRACE   0
 
#define IFTHEN(cond, act)
 
#define PRINT(fmt, args...)
 
#define FNAME(name)
 
#define NUL   0
 
#define BOOL   1
 
#define OID   2
 
#define INT   3
 
#define ENUM   4
 
#define BITSTR   5
 
#define NUMSTR   6
 
#define NUMDGT   6
 
#define TBCDSTR   6
 
#define OCTSTR   7
 
#define PRTSTR   7
 
#define IA5STR   7
 
#define GENSTR   7
 
#define BMPSTR   8
 
#define SEQ   9
 
#define SET   9
 
#define SEQOF   10
 
#define SETOF   10
 
#define CHOICE   11
 
#define FIXD   0
 
#define BYTE   9
 
#define WORD   10
 
#define CONS   11
 
#define SEMI   12
 
#define UNCO   13
 
#define SKIP   0
 
#define STOP   1
 
#define DECODE   2
 
#define EXT   4
 
#define OPEN   8
 
#define OPT   16
 
#define INC_BIT(bs)   if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;}
 
#define INC_BITS(bs, b)   if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;}
 
#define BYTE_ALIGN(bs)   if((bs)->bit){(bs)->cur++;(bs)->bit=0;}
 
#define CHECK_BOUND(bs, n)   if((bs)->cur+(n)>(bs)->end)return(H323_ERROR_BOUND)
 

Typedefs

typedef struct field_t field_t
 
typedef int(* decoder_t )(bitstr_t *, const struct field_t *, char *, int)
 

Functions

int DecodeRasMessage (unsigned char *buf, size_t sz, RasMessage *ras)
 
int DecodeMultimediaSystemControlMessage (unsigned char *buf, size_t sz, MultimediaSystemControlMessage *mscm)
 
int DecodeQ931 (unsigned char *buf, size_t sz, Q931 *q931)
 

Macro Definition Documentation

#define BITSTR   5

Definition at line 46 of file nf_conntrack_h323_asn1.c.

#define BMPSTR   8

Definition at line 54 of file nf_conntrack_h323_asn1.c.

#define BOOL   1

Definition at line 42 of file nf_conntrack_h323_asn1.c.

#define BYTE   9

Definition at line 64 of file nf_conntrack_h323_asn1.c.

#define BYTE_ALIGN (   bs)    if((bs)->bit){(bs)->cur++;(bs)->bit=0;}

Definition at line 105 of file nf_conntrack_h323_asn1.c.

#define CHECK_BOUND (   bs,
  n 
)    if((bs)->cur+(n)>(bs)->end)return(H323_ERROR_BOUND)

Definition at line 106 of file nf_conntrack_h323_asn1.c.

#define CHOICE   11

Definition at line 59 of file nf_conntrack_h323_asn1.c.

#define CONS   11

Definition at line 66 of file nf_conntrack_h323_asn1.c.

#define DECODE   2

Definition at line 73 of file nf_conntrack_h323_asn1.c.

#define ENUM   4

Definition at line 45 of file nf_conntrack_h323_asn1.c.

#define EXT   4

Definition at line 74 of file nf_conntrack_h323_asn1.c.

#define FIXD   0

Definition at line 62 of file nf_conntrack_h323_asn1.c.

#define FNAME (   name)

Definition at line 37 of file nf_conntrack_h323_asn1.c.

#define GENSTR   7

Definition at line 53 of file nf_conntrack_h323_asn1.c.

#define H323_TRACE   0

Definition at line 22 of file nf_conntrack_h323_asn1.c.

#define IA5STR   7

Definition at line 52 of file nf_conntrack_h323_asn1.c.

#define IFTHEN (   cond,
  act 
)

Definition at line 35 of file nf_conntrack_h323_asn1.c.

#define INC_BIT (   bs)    if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;}

Definition at line 103 of file nf_conntrack_h323_asn1.c.

#define INC_BITS (   bs,
  b 
)    if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;}

Definition at line 104 of file nf_conntrack_h323_asn1.c.

#define INT   3

Definition at line 44 of file nf_conntrack_h323_asn1.c.

#define NUL   0

Definition at line 41 of file nf_conntrack_h323_asn1.c.

#define NUMDGT   6

Definition at line 48 of file nf_conntrack_h323_asn1.c.

#define NUMSTR   6

Definition at line 47 of file nf_conntrack_h323_asn1.c.

#define OCTSTR   7

Definition at line 50 of file nf_conntrack_h323_asn1.c.

#define OID   2

Definition at line 43 of file nf_conntrack_h323_asn1.c.

#define OPEN   8

Definition at line 75 of file nf_conntrack_h323_asn1.c.

#define OPT   16

Definition at line 76 of file nf_conntrack_h323_asn1.c.

#define PRINT (   fmt,
  args... 
)

Definition at line 36 of file nf_conntrack_h323_asn1.c.

#define PRTSTR   7

Definition at line 51 of file nf_conntrack_h323_asn1.c.

#define SEMI   12

Definition at line 67 of file nf_conntrack_h323_asn1.c.

#define SEQ   9

Definition at line 55 of file nf_conntrack_h323_asn1.c.

#define SEQOF   10

Definition at line 57 of file nf_conntrack_h323_asn1.c.

#define SET   9

Definition at line 56 of file nf_conntrack_h323_asn1.c.

#define SETOF   10

Definition at line 58 of file nf_conntrack_h323_asn1.c.

#define SKIP   0

Definition at line 71 of file nf_conntrack_h323_asn1.c.

#define STOP   1

Definition at line 72 of file nf_conntrack_h323_asn1.c.

#define TBCDSTR   6

Definition at line 49 of file nf_conntrack_h323_asn1.c.

#define UNCO   13

Definition at line 68 of file nf_conntrack_h323_asn1.c.

#define WORD   10

Definition at line 65 of file nf_conntrack_h323_asn1.c.

Typedef Documentation

typedef int(* decoder_t)(bitstr_t *, const struct field_t *, char *, int)

Definition at line 128 of file nf_conntrack_h323_asn1.c.

Function Documentation

int DecodeMultimediaSystemControlMessage ( unsigned char buf,
size_t  sz,
MultimediaSystemControlMessage mscm 
)

Definition at line 803 of file nf_conntrack_h323_asn1.c.

int DecodeQ931 ( unsigned char buf,
size_t  sz,
Q931 q931 
)

Definition at line 822 of file nf_conntrack_h323_asn1.c.

int DecodeRasMessage ( unsigned char buf,
size_t  sz,
RasMessage ras 
)

Definition at line 769 of file nf_conntrack_h323_asn1.c.