Revision 153f02da sysdep/unix/krt.h

View differences:

sysdep/unix/krt.h
94 94

  
95 95
extern struct protocol proto_unix_iface;
96 96

  
97
struct kif_primary_item {
98
  node n;
99
  byte *pattern;
100
  net_addr addr;
101
};
102

  
103 97
struct kif_config {
104 98
  struct proto_config c;
105 99
  struct kif_params sys;	/* Sysdep params */
100

  
101
  list iface_list;		/* List of iface configs (struct kif_iface_config) */
106 102
  int scan_time;		/* How often we re-scan interfaces */
107
  list primary;			/* Preferences for primary addresses (struct kif_primary_item) */
103
};
104

  
105
struct kif_iface_config {
106
  struct iface_patt i;
107

  
108
  ip_addr pref_v4;
109
  ip_addr pref_v6;
110
  ip_addr pref_ll;
108 111
};
109 112

  
110 113
struct kif_proto {
......
116 119

  
117 120
#define KIF_CF ((struct kif_config *)p->p.cf)
118 121

  
122
struct kif_iface_config * kif_get_iface_config(struct iface *iface);
119 123
struct proto_config * krt_init_config(int class);
120 124

  
121 125

  
......
150 154

  
151 155
void kif_do_scan(struct kif_proto *);
152 156

  
153
struct ifa *kif_get_primary_ip(struct iface *i);
157
int kif_update_sysdep_addr(struct iface *i);
154 158

  
155 159
#endif

Also available in: Unified diff