- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Type of Service (ToS) Precedence
Operating System - HP-UX
1823064
Members
3307
Online
109645
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2002 01:14 PM
тАО04-03-2002 01:14 PM
Hi Folks,
I am looking for infomation on how to set the ToS precedence. In an IP packet there is an IP header. In this header there is a ToS (Type of Service) byte:
------------------------------------
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
------------------------------------
| | ToS |
^
L Precedence
There is documentation on how to set the ToS portion of the ToS byte (setsockopt; see man ip) but I don't know how to set the precedence portion of the ToS byte. Does anyone know how to do this?
Thanks for any help you can give.
OS=HP-UX 11.00
Jerry
I am looking for infomation on how to set the ToS precedence. In an IP packet there is an IP header. In this header there is a ToS (Type of Service) byte:
------------------------------------
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
------------------------------------
| | ToS |
^
L Precedence
There is documentation on how to set the ToS portion of the ToS byte (setsockopt; see man ip) but I don't know how to set the precedence portion of the ToS byte. Does anyone know how to do this?
Thanks for any help you can give.
OS=HP-UX 11.00
Jerry
What hath Babbage wrought?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:40 AM
тАО04-04-2002 03:40 AM
Re: Type of Service (ToS) Precedence
The precedence-bits have not been changed since RFC791:
Packets can be filtered by precedence level, as specified by a number from
0 to 7, or by name.
The following is a list of precedence names:
bits name
--- -------------
111 network (network control)
110 internet (internetwork control)
101 critical (CRITIC/ECP)
100 flash-override
011 flash
010 immediate
001 priority
000 routine
Regards,
Ceesjan
Packets can be filtered by precedence level, as specified by a number from
0 to 7, or by name.
The following is a list of precedence names:
bits name
--- -------------
111 network (network control)
110 internet (internetwork control)
101 critical (CRITIC/ECP)
100 flash-override
011 flash
010 immediate
001 priority
000 routine
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:52 AM
тАО04-04-2002 03:52 AM
Solution
Have you tried setting the high order bits in the unsigned char argument to setsockopt(IP_TOS)? Eg the value 0xb0 (binary 11100000) will set all the precedence bits in the TOS header to 1.
The man page only specifies three allowable values but states that no error will be returned for the other possibilities.
Regards,
Steve
The man page only specifies three allowable values but states that no error will be returned for the other possibilities.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:54 AM
тАО04-04-2002 03:54 AM
Re: Type of Service (ToS) Precedence
Sorry, that should read 'the value 0xe0 (binary 11100000) will set all the precedence bits in the TOS header to 1'.
Regards,
Steve
Regards,
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP