#include <sys/types.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <fcntl.h>#include <unistd.h>#include <time.h>#include <sys/ioctl.h>#include <net/hton.h>#include <net/gen/in.h>#include <net/gen/tcp.h>#include <net/gen/tcp_io.h>#include <net/gen/inet.h>#include <net/gen/socket.h>#include <net/gen/netdb.h>Include dependency graph for servxcheck.c:

Go to the source code of this file.
Defines | |
| #define | nil 0 |
| #define | ioctl _ioctl |
| #define | open _open |
| #define | write _write |
| #define | close _close |
| #define | WLEN 256 |
| #define | lc(c, d) ((((c)= (d)) - 'A') <= ('Z' - 'A') ? (c)+= ('a' - 'A') : 0) |
| #define | DEFFAIL 0x01 |
| #define | FAIL (0x02 | DEFFAIL) |
| #define | PASS 0x04 |
Functions | |
| static int | getword (FILE *fp, char *word) |
| static int | netspec (char *word, ipaddr_t *addr, ipaddr_t *mask) |
| static int | match (const char *word, const char *pattern) |
| static int | get_name (ipaddr_t addr, char *name) |
| int | servxcheck (ipaddr_t peer, const char *service, void(*logf)(int pass, const char *name)) |
| char * | servxfile (const char *file) |
Variables | |
| static const char * | path_servacces = _PATH_SERVACCES |
|
|
|
Definition at line 154 of file servxcheck.c. Referenced by servxcheck(). |
|
|
Definition at line 155 of file servxcheck.c. |
|
|
|
|
|
|
Definition at line 4 of file servxcheck.c. |
|
|
|
Definition at line 156 of file servxcheck.c. Referenced by servxcheck(). |
|
|
Definition at line 29 of file servxcheck.c. Referenced by servxcheck(). |
|
|
||||||||||||
|
Definition at line 126 of file servxcheck.c. References AF_INET, gethostbyaddr, gethostbyname, hostent::h_addr_list, hostent::h_addrtype, hostent::h_name, i, memcmp(), NULL, and strcpy(). |
|
||||||||||||
|
Definition at line 31 of file servxcheck.c. |
|
||||||||||||
|
Definition at line 91 of file servxcheck.c. |
|
||||||||||||||||
|
Definition at line 65 of file servxcheck.c. References htonl, inet_aton(), L, NULL, r, S32, slash(), and strchr. Referenced by servxcheck(). |
|
||||||||||||||||
|
Definition at line 158 of file servxcheck.c. References addr, c, close, DEFFAIL, ENOENT, EOF, errno, FAIL, fclose(), fopen(), fp, fprintf(), get_name(), getword(), HTONL, localtime(), log(), match, month, netspec(), nil, O_APPEND, O_WRONLY, open, PASS, path_servacces, sprintf(), stderr, strcmp, strlen(), t, time, time_t, tm::tm_hour, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, WLEN, and write. Referenced by main(). |
|
|
Definition at line 294 of file servxcheck.c. References path_servacces. |
|
|
Definition at line 27 of file servxcheck.c. Referenced by servxcheck(), and servxfile(). |
1.4.6