summaryrefslogtreecommitdiff
path: root/sysdep/bsd/krt-sock.h
blob: d2a7efbc1c8af7d6730bab4e1594ad2957d5cba5 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 *	BIRD -- Unix Kernel Route Syncer -- Setting
 *
 *	(c) 2004 Ondrej Filip <feela@network.cz>
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */

#ifndef _BIRD_KRT_SOCK_H_
#define _BIRD_KRT_SOCK_H_

#include <sys/socket.h>
#include <net/route.h>
#include "lib/socket.h"

#ifndef RTAX_MAX
#define RTAX_MAX        8
#endif


struct ks_msg
{
  struct rt_msghdr rtm;
  struct sockaddr_storage buf[RTAX_MAX];
};



extern int krt_set_sock;

struct krt_set_params {
};

struct krt_set_status {
};

struct krt_if_params {
};

struct krt_if_status {
};

static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan);

#endif