TABLE OF CONTENTS
- 1. libram/conn_hdr
- 2. libram/conn_hdr4
- 3. libram/conn_hdr6
- 4. libram/conn_payload
- 5. libram/libram_port
- 6. libram/reply
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
- src_addr: source address of tcp or udp connection in network order
- dst_addr: destination address of tcp or upd connection in network order
- src_port: source port of tcp or udp connection in network order
- dst_port: destinatin port of tcp or udp connection in network order
- trans_prot: transport protocol
- connect: connect string with further information to backend
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
- src_addr: source address of tcp or udp connection in network order
- dst_addr: destination address of tcp or upd connection in network order
- src_port: source port of tcp or udp connection in network order
- dst_port: destinatin port of tcp or udp connection in network order
- trans_prot: transport protocol
- connect: connect string with further information to backend
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
- direction: data from client to server or reverse
- data.data_len: length of data
- data.data_val: data
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
- action: result action
- id: connection id
- processed: offset to which data has been processed
- relpace.data_len: connection data length
- relpace.data_val: replacement data
SEE ALSO
libram_open(3), libram_data(3), libram_close(3)