Barrelfish
Macros | Typedefs
bfdmux.h File Reference

Bfdmux twek options. More...

Macros

#define PROC_QUEUE_LEN   5
 Number of NIC buffers to queue for processing.
 
#define BFDMUX_SOCK_PATH   "/tmp/.bfdmux.sock"
 Location of the UNIX socket file.
 
#define FLUSH_AND_SYNC   1
 Always call fflush and sync on file descriptor and communication channels.
 
#define ERR_OK   0
 No error.
 
#define ERR_NONFATAL   -1
 Error, but nonfatal.
 
#define ERR_FATAL   -2
 Fatal error, shut down.
 
#define ERR_DISCONNECT   -3
 Disconnect error. Client-server connection is lost.
 
#define ERR_DROPPED   -4
 Application was not able to receive a new packet. So the packet was dropped.
 
#define PROTO_TCP   0x06
 TCP protocol number in IPv4 header.
 
#define PROTO_UDP   0x11a
 UDP protocol number in IPv4 header.
 
#define PORT_ANY   0x00
 Any UDP/TCP port.
 
#define BFDMUX_IP_ADDR_ANY   0x00
 Any IPv4-Address.
 
#define IP_ADDR_LOCAL   0x7f000001
 This is the localhost 127.0.0.1 IP-Address.
 

Typedefs

typedef uint8_t prot_t
 Protocol type.
 
typedef uint32_t addr_t
 IP-Address type.
 
typedef uint16_t port_t
 Port type.
 
typedef int32_t sock_t
 Socket type.
 
typedef int32_t mq_t
 Message queue type.
 
typedef uint8_t cmd_t
 Command type.
 
typedef uint32_t mqkey_t
 Message queue key type.
 
typedef uint32_t smkey_t
 Shared memory key type.
 
typedef int32_t filterid_t
 Filter id type. Negative values for errors.
 

Detailed Description

Bfdmux twek options.