Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / bsd / krt-sock.h @ b1a1faba

History | View | Annotate | Download (798 Bytes)

1
/*
2
 *        BIRD -- Unix Kernel Route Syncer -- Setting
3
 *
4
 *        (c) 2004 Ondrej Filip <feela@network.cz>
5
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
#ifndef _BIRD_KRT_SOCK_H_
10
#define _BIRD_KRT_SOCK_H_
11

    
12
#include <sys/socket.h>
13
#include <net/route.h>
14
#include "lib/socket.h"
15

    
16
#ifndef RTAX_MAX
17
#define RTAX_MAX        8
18
#endif
19

    
20

    
21
struct ks_msg
22
{
23
  struct rt_msghdr rtm;
24
  struct sockaddr_storage buf[RTAX_MAX];
25
};
26

    
27

    
28

    
29
extern int krt_set_sock;
30

    
31
struct krt_set_params {
32
};
33

    
34
struct krt_set_status {
35
};
36

    
37
struct krt_if_params {
38
};
39

    
40
struct krt_if_status {
41
};
42

    
43
static int krt_set_hook(sock *sk, int size);
44
static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
45
void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan);
46

    
47
#endif