~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to route.h

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2008-10-07 16:30:44 UTC
  • mfrom: (1.1.11 upstream) (10.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081007163044-ixx04wg588z1972e
Tags: 2.1~rc11-1ubuntu1
* Merge with Debian (LP: #279655), remaining diffs:
  - debian/openvpn.init.d: Added 'status' action to init script, show
    per-VPN result messages and add "--script-security 2" by default for
    backwards compatibility
  - debian/control: Added lsb-base>=3.2-14 depend to allow status_of_proc()
* Fixes regression when calling commands with arguments (LP: #277447)

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
                      in_addr_t remote_host,
139
139
                      struct env_set *es);
140
140
 
 
141
void route_list_add_default_gateway (struct route_list *rl,
 
142
                                     struct env_set *es,
 
143
                                     const in_addr_t addr);
 
144
 
141
145
void add_routes (struct route_list *rl,
142
146
                 const struct tuntap *tt,
143
147
                 unsigned int flags,
152
156
 
153
157
bool is_special_addr (const char *addr_str);
154
158
 
 
159
bool get_default_gateway (in_addr_t *ip, in_addr_t *netmask);
 
160
 
155
161
#if AUTO_USERID
156
162
bool get_default_gateway_mac_addr (unsigned char *macaddr);
157
163
#endif
186
192
  return mask;
187
193
}
188
194
 
 
195
static inline bool
 
196
route_list_default_gateway_needed (const struct route_list *rl)
 
197
{
 
198
  if (!rl)
 
199
    return false;
 
200
  else
 
201
    return !rl->spec.remote_endpoint_defined;
 
202
}
 
203
 
189
204
#endif