-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82c4ac9
commit a036c0e
Showing
6 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export const getDSCPDocUrl = () => { | ||
return 'https://www.rfc-editor.org/rfc/rfc4594'; | ||
}; | ||
|
||
export const getDSCPServiceClassName = (dscp: number): string => { | ||
switch (dscp) { | ||
case 48: | ||
return 'Network Control'; | ||
case 46: | ||
return 'Telephony'; | ||
case 40: | ||
return 'Multimedia Conferencing'; | ||
case 36: | ||
case 32: | ||
return 'Real-Time Interactive'; | ||
case 30: | ||
case 28: | ||
case 26: | ||
return 'Multimedia Streaming'; | ||
case 24: | ||
return 'Broadcast Video'; | ||
case 22: | ||
case 20: | ||
case 18: | ||
return 'Low-Latency Data'; | ||
case 16: | ||
return 'OAM'; | ||
case 14: | ||
case 12: | ||
case 10: | ||
return 'Standard'; | ||
case 8: | ||
return 'Low-Priority Data'; | ||
default: | ||
return ''; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters