Merge "Add comments for invalid IP/port and add Invalid filterID/avSyncId"
This commit is contained in:
commit
1933b53af3
1 changed files with 27 additions and 1 deletions
|
@ -1954,7 +1954,7 @@ safe_union DemuxPid {
|
|||
};
|
||||
|
||||
@export
|
||||
enum Constant : uint16_t {
|
||||
enum Constant : uint32_t {
|
||||
/**
|
||||
* An invalid packet ID in transport stream according to ISO/IEC 13818-1.
|
||||
*/
|
||||
|
@ -1963,6 +1963,14 @@ enum Constant : uint16_t {
|
|||
* An invalid Stream ID.
|
||||
*/
|
||||
INVALID_STREAM_ID = 0xFFFF,
|
||||
/**
|
||||
* An invalid Filter ID.
|
||||
*/
|
||||
INVALID_FILTER_ID = 0xFFFFFFFF,
|
||||
/**
|
||||
* An invalid AV sync hardware ID.
|
||||
*/
|
||||
INVALID_AV_SYNC_ID = 0xFFFFFFFF,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -2181,19 +2189,37 @@ struct DemuxFilterDownloadSettings {
|
|||
*/
|
||||
struct DemuxIpAddress {
|
||||
safe_union SrcIpAddress {
|
||||
/**
|
||||
* 0.0.0.0 is invalid. should be ignored.
|
||||
*/
|
||||
uint8_t[4] v4;
|
||||
|
||||
/**
|
||||
* 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 is invalid. should be ignored.
|
||||
*/
|
||||
uint8_t[16] v6;
|
||||
} srcIpAddress;
|
||||
|
||||
safe_union DstIpAddress {
|
||||
/**
|
||||
* 0.0.0.0 is invalid. should be ignored.
|
||||
*/
|
||||
uint8_t[4] v4;
|
||||
|
||||
/**
|
||||
* 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 is invalid. should be ignored.
|
||||
*/
|
||||
uint8_t[16] v6;
|
||||
} dstIpAddress;
|
||||
|
||||
/**
|
||||
* 0 is invalid. should be ignored.
|
||||
*/
|
||||
uint16_t srcPort;
|
||||
|
||||
/**
|
||||
* 0 is invalid. should be ignored.
|
||||
*/
|
||||
uint16_t dstPort;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue