Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 1 | .. _types: |
| 2 | |
| 3 | Type value assignment |
| 4 | --------------------- |
| 5 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame^] | 6 | +---------------------------------------------+-------------------+----------------+ |
| 7 | | Type | Assigned value | Assigned value | |
| 8 | | | (decimal) | (hexadecimal) | |
| 9 | +=============================================+===================+================+ |
| 10 | | **Packet types** | |
| 11 | +---------------------------------------------+-------------------+----------------+ |
| 12 | | Interest | 0 | 0x00 | |
| 13 | +---------------------------------------------+-------------------+----------------+ |
| 14 | | Data | 1 | 0x01 | |
| 15 | +---------------------------------------------+-------------------+----------------+ |
| 16 | | **Common fields** | | |
| 17 | +---------------------------------------------+-------------------+----------------+ |
| 18 | | Name | 2 | 0x02 | |
| 19 | +---------------------------------------------+-------------------+----------------+ |
| 20 | | NameComponent | 3 | 0x03 | |
| 21 | +---------------------------------------------+-------------------+----------------+ |
| 22 | | **Interest packet** | |
| 23 | +---------------------------------------------+-------------------+----------------+ |
| 24 | | Selectors | 4 | 0x04 | |
| 25 | +---------------------------------------------+-------------------+----------------+ |
| 26 | | Nonce | 5 | 0x05 | |
| 27 | +---------------------------------------------+-------------------+----------------+ |
| 28 | | Scope | 6 | 0x06 | |
| 29 | +---------------------------------------------+-------------------+----------------+ |
| 30 | | InterestLifetime | 7 | 0x07 | |
| 31 | +---------------------------------------------+-------------------+----------------+ |
| 32 | | **Interest/Selectors** | |
| 33 | +---------------------------------------------+-------------------+----------------+ |
| 34 | | MinSuffixComponents | 8 | 0x08 | |
| 35 | +---------------------------------------------+-------------------+----------------+ |
| 36 | | MaxSuffixComponents | 9 | 0x09 | |
| 37 | +---------------------------------------------+-------------------+----------------+ |
| 38 | | PublisherPublicKeyLocator | 10 | 0x0a | |
| 39 | +---------------------------------------------+-------------------+----------------+ |
| 40 | | Exclude | 11 | 0x0b | |
| 41 | +---------------------------------------------+-------------------+----------------+ |
| 42 | | ChildSelector | 12 | 0x0c | |
| 43 | +---------------------------------------------+-------------------+----------------+ |
| 44 | | MustBeFresh | 13 | 0x0d | |
| 45 | +---------------------------------------------+-------------------+----------------+ |
| 46 | | Any | 14 | 0x0e | |
| 47 | +---------------------------------------------+-------------------+----------------+ |
| 48 | | **Data packet** | |
| 49 | +---------------------------------------------+-------------------+----------------+ |
| 50 | | MetaInfo | 15 | 0x0f | |
| 51 | +---------------------------------------------+-------------------+----------------+ |
| 52 | | Content | 16 | 0x10 | |
| 53 | +---------------------------------------------+-------------------+----------------+ |
| 54 | | SignatureInfo | 17 | 0x11 | |
| 55 | +---------------------------------------------+-------------------+----------------+ |
| 56 | | SignatureValue | 18 | 0x12 | |
| 57 | +---------------------------------------------+-------------------+----------------+ |
| 58 | | **Data/MetaInfo** | |
| 59 | +---------------------------------------------+-------------------+----------------+ |
| 60 | | ContentType | 19 | 0x13 | |
| 61 | +---------------------------------------------+-------------------+----------------+ |
| 62 | | FreshnessPeriod | 20 | 0x14 | |
| 63 | +---------------------------------------------+-------------------+----------------+ |
| 64 | | **Data/Signature** | |
| 65 | +---------------------------------------------+-------------------+----------------+ |
| 66 | | SignatureType | 21 | 0x15 | |
| 67 | +---------------------------------------------+-------------------+----------------+ |
| 68 | | KeyLocator | 22 | 0x16 | |
| 69 | +---------------------------------------------+-------------------+----------------+ |
| 70 | | KeyLocatorDigest | 23 | 0x17 | |
| 71 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 72 | |
| 73 | Type value reservations |
| 74 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 75 | |
| 76 | +----------------+-----------------------------------------------------------+ |
| 77 | | Values | Designation | |
| 78 | +================+===========================================================+ |
| 79 | | 24-127 | Reserved for future assignments (1-byte encoding) | |
| 80 | +----------------+-----------------------------------------------------------+ |
| 81 | | 128-252 | For application use (1-byte encoding) | |
| 82 | +----------------+-----------------------------------------------------------+ |
| 83 | | 253-32767 | Reserved for future assignments (3-byte encoding) | |
| 84 | +----------------+-----------------------------------------------------------+ |
| 85 | | >32767 | For application use (3-byte encoding) | |
| 86 | +----------------+-----------------------------------------------------------+ |