opnums
Opnums, short for operation numbers, are values used in certain remote procedure call (RPC) protocols to identify individual procedures within an interface. In DCE/RPC and Microsoft RPC implementations, each interface exposes a set of procedures, and every procedure is assigned a distinct opnum. The opnum is included in the RPC request header and serves as the dispatcher key that selects the correct procedure on the server.
In practice, a server maintains a dispatch table or virtual table that maps opnums to server-side functions.
Opnums are generally defined by the interface’s description language, such as DCE/RPC Interface Definition Language or
Security and compatibility considerations include validating opnums to avoid unintended dispatch, logging unknown opnums for auditing,