56 #ifndef __LIBNET_ASN1_H 
   57 #define __LIBNET_ASN1_H 
   59 #ifndef EIGHTBIT_SUBIDS 
   61 #define MAX_SUBID   0xFFFFFFFF 
   64 #define MAX_SUBID   0xFF 
   67 #define MAX_OID_LEN         64   
   69 #define ASN_BOOLEAN         (0x01) 
   70 #define ASN_INTEGER         (0x02) 
   71 #define ASN_BIT_STR         (0x03) 
   72 #define ASN_OCTET_STR       (0x04) 
   73 #define ASN_NULL            (0x05) 
   74 #define ASN_OBJECT_ID       (0x06) 
   75 #define ASN_SEQUENCE        (0x10) 
   76 #define ASN_SET             (0x11) 
   78 #define ASN_UNIVERSAL       (0x00) 
   79 #define ASN_APPLICATION     (0x40) 
   80 #define ASN_CONTEXT         (0x80) 
   81 #define ASN_PRIVATE         (0xC0) 
   83 #define ASN_PRIMITIVE       (0x00) 
   84 #define ASN_CONSTRUCTOR     (0x20) 
   86 #define ASN_LONG_LEN        (0x80) 
   87 #define ASN_EXTENSION_ID    (0x1F) 
   88 #define ASN_BIT8            (0x80) 
   90 #define IS_CONSTRUCTOR(byte)  ((byte) & ASN_CONSTRUCTOR) 
   91 #define IS_EXTENSION_ID(byte) (((byte) & ASN_EXTENSION_ID) = ASN_EXTENSION_ID) 
  116 libnet_build_asn1_int(
 
  133 libnet_build_asn1_uint(
 
  150 libnet_build_asn1_string(
 
  169 libnet_build_asn1_header(
 
  178 libnet_build_asn1_length(
 
  196 libnet_build_asn1_sequence(
 
  212 libnet_build_asn1_objid(
 
  229 libnet_build_asn1_null(
 
  244 libnet_build_asn1_bitstring(