8c2952457
김태훈
응용 프로그램 추가
|
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#ifndef _FA_BIND_IOCTL_H_
#define _FA_BIND_IOCTL_H_
#define FABIND_DEV_NAME "fa-bind"
#define MAGIC_FA_BIND 'F'
#define IOCTL_SET_BIND_INFO _IOW( MAGIC_FA_BIND, 50, ioctl_set_bind_info_t )
#define IOCTL_BIND_SEND _IOW( MAGIC_FA_BIND, 51, ioctl_bind_msg_t )
#define IOCTL_BIND_RECV _IOR( MAGIC_FA_BIND, 52, ioctl_bind_msg_t )
#define IOCTL_BIND_SEND_REQ _IOW( MAGIC_FA_BIND, 53, ioctl_bind_msg_t )
#define IOCTL_BIND_SEND_ACK _IOW( MAGIC_FA_BIND, 54, ioctl_bind_msg_t )
#define IOCTL_BIND_RECV_ACK _IOR( MAGIC_FA_BIND, 55, ioctl_bind_msg_t )
#define IOCTL_BIND_SEND_GROUP _IOW( MAGIC_FA_BIND, 56, ioctl_bind_msg_t )
typedef struct {
int port;
int group;
int recv_queue_count;
} ioctl_set_bind_info_t;
typedef struct {
int port;
int group;
int sr_type;
int count;
unsigned char *buf;
} __attribute__((packed)) ioctl_bind_msg_t;
#define SR_TYPE_NORMAL 0
#define SR_TYPE_EXPRESS 1
#define SR_TYPE_EMERENCY 2
#define SR_TYPE_REQ_ACK 0x10000000
#define FABIND_BROADCAST_GROUP (0x7fff)
#endif
|