~ubuntu-branches/ubuntu/raring/openvpn/raring-proposed

« back to all changes in this revision

Viewing changes to openvpn.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2006-04-05 12:17:26 UTC
  • mto: (1.3.3 upstream) (10.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060405121726-btck979dumiwfrte
Tags: upstream-2.0.6
ImportĀ upstreamĀ versionĀ 2.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
  struct buffer read_tun_buf;
118
118
};
119
119
 
 
120
/* 
 
121
 * level 0 context contains data related to
 
122
 * once-per OpenVPN instantiation events
 
123
 * such as daemonization.
 
124
 */
 
125
struct context_0
 
126
{
 
127
  /* workspace for get_pid_file/write_pid */
 
128
  struct pid_state pid_state;
 
129
 
 
130
  /* workspace for --user/--group */
 
131
  bool uid_gid_specified;
 
132
  bool uid_gid_set;
 
133
  struct user_state user_state;
 
134
  struct group_state group_state;
 
135
};
 
136
 
120
137
/*
121
138
 * Contains the persist-across-restart OpenVPN tunnel instance state.
122
139
 * Reset only for SIGHUP restarts.
335
352
   */
336
353
  bool ipv4_tun;
337
354
 
338
 
  /* workspace for get_pid_file/write_pid */
339
 
  struct pid_state pid_state;
340
 
 
341
 
  /* workspace for --user/--group */
342
 
  bool uid_gid_specified;
343
 
  bool uid_gid_set;
344
 
  struct user_state user_state;
345
 
  struct group_state group_state;
346
 
 
347
355
  /* should we print R|W|r|w to console on packet transfers? */
348
356
  bool log_rw;
349
357
 
447
455
  /* set to true after we daemonize */
448
456
  bool did_we_daemonize;
449
457
 
 
458
  /* level 0 context contains data related to
 
459
     once-per OpenVPN instantiation events
 
460
     such as daemonization */
 
461
  struct context_0 *c0;
 
462
 
450
463
  /* level 1 context is preserved for
451
464
     SIGUSR1 restarts, but initialized
452
465
     for SIGHUP restarts */