Skip to content

Commit

Permalink
Example port constraints matching information from RFC 3551 and IANA …
Browse files Browse the repository at this point in the history
…port assignment register (#159)
  • Loading branch information
garethsb authored Jun 23, 2022
1 parent 55a0408 commit 7ea95af
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 56 deletions.
23 changes: 12 additions & 11 deletions examples/receiver-constraints-get-200-2022-7.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[{
[
{
"source_ip": {},
"multicast_ip": {},
"interface_ip": {
Expand All @@ -10,8 +11,8 @@
]
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -23,17 +24,17 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtp_enabled": {}
},
Expand All @@ -49,8 +50,8 @@
]
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -70,17 +71,17 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtp_enabled": {}
}
Expand Down
10 changes: 5 additions & 5 deletions examples/receiver-constraints-get-200.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
]
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -23,17 +23,17 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtp_enabled": {}
}]
55 changes: 28 additions & 27 deletions examples/sender-constraints-get-200-2022-7.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[{
[
{
"source_ip": {
"enum": [
"192.168.7.2",
Expand All @@ -9,12 +10,12 @@
},
"destination_ip": {},
"source_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 1025,
"maximum": 65535
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -40,29 +41,29 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec1D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"fec2D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtp_enabled": {}
},
Expand All @@ -77,12 +78,12 @@
},
"destination_ip": {},
"source_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 1025,
"maximum": 65535
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -108,29 +109,29 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec1D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"fec2D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtp_enabled": {}
}
Expand Down
26 changes: 13 additions & 13 deletions examples/sender-constraints-get-200.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
},
"destination_ip": {},
"source_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 1025,
"maximum": 65535
},
"destination_port": {
"maximum": 50000,
"minimum": 49151
"minimum": 5000,
"maximum": 49150
},
"fec_enabled": {},
"fec_destination_ip": {},
Expand All @@ -40,29 +40,29 @@
},
"fec1D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec2D_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"fec1D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"fec2D_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtcp_enabled": {},
"rtcp_destination_ip": {},
"rtcp_destination_port": {
"minimum": 5000,
"maximum": 49151
"maximum": 49150
},
"rtcp_source_port": {
"minimum": 5000,
"maximum": 49151
"minimum": 1025,
"maximum": 65535
},
"rtp_enabled": {}
}]

0 comments on commit 7ea95af

Please sign in to comment.