how can i represent the first field of an ip-header "version"
in ASN.1 ?

my mentor said, that INTEGER is not recommend.

Dear Mr. Yilmaz:

I'm no expert in IP stuff, but it looks like a simple 4-bit field, where each (actually most) value has a meaning. I would use either

- INTEGER with named values, or
- ENUMERATED.

Since individual bits don't appear to have meaning, I would not use BIT STRING.

Since it's only 4 bits long, none of the BER-ish (BER, DER, CER) encoding rules is suitable. You would use PER.

Note that I have only looked at the version field. I have not taken a look at any of the other ip-header fields.

=====================================================================
Conrad Sigona                    Voice Mail     : 1-732-302-9669 x400
OSS Nokalva                      Fax            : 1-614-388-4156
[EMAIL PROTECTED]                   My direct line : 1-315-845-1773
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to