diff options
author | Kozlov Dmitry <dima@server> | 2010-09-14 15:56:31 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-14 16:05:10 +0400 |
commit | d860a4beaf5f99d5045d03b931b4829426a2f7b0 (patch) | |
tree | 377f0cf851020786f5e40f70644a3dafbc63ce14 /accel-pptpd/utils.c | |
parent | a670641cc3c420bfd9026d3711501663aef88287 (diff) | |
download | accel-ppp-d860a4beaf5f99d5045d03b931b4829426a2f7b0.tar.gz accel-ppp-d860a4beaf5f99d5045d03b931b4829426a2f7b0.zip |
extra: implemented module 'pppd_compat' which starts pppd compatible scripts ip-up, ip-down,
and newly introduced - ip-change, when radius CoA request received,
also this module manages pppd compatible radattr.pppX files
core: implemented module 'sigchld' which handles SIGCHLD signal,
waits child processes to terminate and manages pid terminate handlers
Diffstat (limited to 'accel-pptpd/utils.c')
-rw-r--r-- | accel-pptpd/utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/accel-pptpd/utils.c b/accel-pptpd/utils.c new file mode 100644 index 00000000..fd59b005 --- /dev/null +++ b/accel-pptpd/utils.c @@ -0,0 +1,10 @@ +#include <stdio.h> + +#include "triton.h" +#include "utils.h" + + +void __export u_inet_ntoa(in_addr_t addr, char *str) +{ + sprintf(str, "%i.%i.%i.%i", addr & 0xff, (addr >> 8) & 0xff, (addr >> 16) & 0xff, (addr >> 24) & 0xff); +} |