TABLE OF CONTENTS


libram/conn_hdr [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

conn_hdr - tcp or udp connections header

DESCRIPTION

The conn_hdr is a union containing either a conn_hdr4 or conn_hdr6 structure.

SOURCE

union conn_hdr switch (enum libram_ipversion v) {
        case libram_ipversion_v4: struct conn_hdr4 v4;
        case libram_ipversion_v6: struct conn_hdr6 v6;
};

typedef struct conn_hdr *conn_hdrp;

ATTRIBUTES

SEE ALSO

conn_hdr4(3), conn_hdr6(3), libram_open(3), libram_protocol(3)


libram/conn_hdr4 [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

conn_hdr4 - ipv4 tcp or udp connections header

DESCRIPTION

The conn_hdr4 struct defines the attributes passed to the backend for analysis. The attributs consists of ip v4 addresses and the ports used.

SOURCE

struct conn_hdr4 {
        char src_addr[4];
        char dst_addr[4];
        short src_port;
        short dst_port;
        enum libram_protocol trans_prot;
        opaque connect<>;
};

typedef struct conn_hdr4 *conn_hdr4p;

ATTRIBUTES

SEE ALSO

conn_hdr6(3), conn_hdr(3), libram_open(3), libram_protocol(3)


libram/conn_hdr6 [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

conn_hdr6 - ipv6 tcp or udp connections header

DESCRIPTION

The conn_hdr6 struct defines the attributes passed to the backend for analysis. The attributs consists of ip v6 addresses and the ports used.

SOURCE

struct conn_hdr6 {
        char src_addr[16];
        char dst_addr[16];
        short src_port;
        short dst_port;
        enum libram_protocol trans_prot;
        opaque connect<>;
};

typedef struct conn_hdr6 *conn_hdr6p;

ATTRIBUTES

SEE ALSO

conn_hdr4(3), conn_hdr(3), libram_open(3), libram_protocol(3)


libram/conn_payload [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

conn_payload - connection payload

DESCRIPTION

The conn_data struct defines the attributes of data flowing in a connection. It consists of the direction flag and the data.

SOURCE

struct conn_payload {
        enum libram_direction direction;
        opaque data<>;
};

typedef struct conn_payload *conn_payloadp;

ATTRIBUTES

SEE ALSO

libram_open(3), libram_data(3), libram_close(3), libram_direction(3)


libram/libram_port [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

libram_port - default port used for libram

DESCRIPTION

Remote analysis over udp or tcp needs a port on which the analysis and modification server listens. The default port for this connection is exported in the symbol libram_port.

SOURCE

const libram_port = "1717";

SEE ALSO

libram-rpcserver(3), libram-rpc(3)


libram/reply [ Structures ]

[ Top ] [ libram ] [ Structures ]

NAME

reply - result of analysis and modification process

DESCRIPTION

The reply struct defines the result of the analysis and modification process. The structure consisist of the action code, the connection identifier and possible the data that should be replaced.

SOURCE

struct reply {
        enum libram_action action;
        long id;
        long processed;
        conn_payload replace;
};

ATTRIBUTES

SEE ALSO

libram_open(3), libram_data(3), libram_close(3)