| 156 | } |
| 157 | |
| 158 | unsigned int GetPathPortSegmentPortIdentifier( |
| 159 | const unsigned char *const cip_path) { |
| 160 | const unsigned int kPortIdentifierMask = 0x0F; |
| 161 | unsigned int port_identifier = *cip_path & kPortIdentifierMask; |
| 162 | /* OPENER_ASSERT(0 != port_identifier, "Use of reserved port identifier 0\n"); */ |
| 163 | OPENER_ASSERT( kSegmentTypePortSegment == GetPathSegmentType(cip_path) ) |
| 164 | OPENER_ASSERT(0 != port_identifier) |
| 165 | return port_identifier; |
| 166 | } |
| 167 | |
| 168 | void SetPathPortSegmentPortIdentifier(const unsigned int port_identifier, |
| 169 | unsigned char *const cip_path) { |