Skip to main content

INET_DIAG_REQ_BYTECODE

Constant INET_DIAG_REQ_BYTECODE 

Source
pub const INET_DIAG_REQ_BYTECODE: u16 = 1;
Expand description

A request that contains an attached bytecode program.

From Linux’s inet_diag.h:

Bytecode is sequence of 4 byte commands followed by variable arguments. All the commands identified by “code” are conditional jumps forward: to offset cc+“yes” or to offset cc+“no”. “yes” is supposed to be length of the command and its arguments.

The program terminates when the instruction pointer passes the end of the program. The program matches the socket if the instruction pointer is just past the end, and rejects it if the instruction pointer is any further.