summaryrefslogtreecommitdiff
path: root/pfinet/linux/socket.h
blob: 22dd05cea3d411db3cf91424b401116fc1186a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _HACK_SOCKET_H_
#define _HACK_SOCKET_H_

#include <sys/socket.h>
#include <sys/ioctl.h>

#define IP_MAX_MEMBERSHIPS 10

#define IPTOS_LOWDELAY 0x10
#define IPTOS_THROUGHPUT 0x08
#define IPTOS_RELIABILITY 0x04

#define SOPRI_INTERACTIVE 0
#define SOPRI_NORMAL 1
#define SOPRI_BACKGROUND 2

#define SOL_IP IPPROTO_IP
#define SOL_TCP IPPROTO_TCP

/* TCP options */
#define TCP_NODELAY 1
#define TCP_MAXSEG 2

#define SO_NO_CHECK 11
#define SO_PRIORITY 12

#endif