ucspi-tcp6 1.13.08
ucspi-tcp6
Loading...
Searching...
No Matches
Macros | Functions | Variables
rblsmtpd.c File Reference
#include <unistd.h>
#include "byte.h"
#include "str.h"
#include "scan.h"
#include "fmt.h"
#include "env.h"
#include "exit.h"
#include "sig.h"
#include "buffer.h"
#include "getoptb.h"
#include "logmsg.h"
#include "stralloc.h"
#include "commands.h"
#include "pathexec.h"
#include "dnsresolv.h"
#include "ip.h"
Include dependency graph for rblsmtpd.c:

Go to the source code of this file.

Macros

#define WHO   "rblsmtpd"
 

Functions

void nomem (void)
 
void usage (void)
 
void ip_init (void)
 
void rbl (char *base)
 
void antirbl (char *base)
 
void waitdelay (unsigned long delay)
 
void rblinfo (void)
 
void reject (char *d)
 
void accept (char *d)
 
void greet (char *d)
 
void quit (char *d)
 
void drop (char *d)
 
void rblsmtpd (void)
 
int main (int argc, char *const argv[], char *const envp[])
 

Variables

char * tcp_proto
 
char * ip_env = 0
 
int flagip6
 
unsigned long timeout = 60
 
int flagrblbounce = 0
 
int flagfailclosed = 0
 
int flagmustnotbounce = 0
 
int flagrblinfo = 0
 
int decision = 0
 
char inspace [64]
 
buffer in = BUFFER_INIT(buffer_unixread,0,inspace,sizeof(inspace))
 
char outspace [1]
 
buffer out = BUFFER_INIT(buffer_unixwrite,1,outspace,sizeof(outspace))
 
struct commands smtpcommands []
 

Macro Definition Documentation

◆ WHO

#define WHO   "rblsmtpd"

Definition at line 18 of file rblsmtpd.c.

Function Documentation

◆ accept()

void accept ( char *  d)

Definition at line 219 of file rblsmtpd.c.

◆ antirbl()

void antirbl ( char *  base)

Definition at line 127 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drop()

void drop ( char *  d)

Definition at line 222 of file rblsmtpd.c.

Here is the caller graph for this function:

◆ greet()

void greet ( char *  d)

Definition at line 220 of file rblsmtpd.c.

Here is the caller graph for this function:

◆ ip_init()

void ip_init ( void  )

Definition at line 39 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *const  argv[],
char *const  envp[] 
)

Definition at line 272 of file rblsmtpd.c.

Here is the call graph for this function:

◆ nomem()

void nomem ( void  )

Definition at line 20 of file rblsmtpd.c.

Here is the caller graph for this function:

◆ quit()

void quit ( char *  d)

Definition at line 221 of file rblsmtpd.c.

◆ rbl()

void rbl ( char *  base)

Definition at line 105 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rblinfo()

void rblinfo ( void  )

Definition at line 189 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rblsmtpd()

void rblsmtpd ( void  )

Definition at line 234 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reject()

void reject ( char *  d)

Definition at line 218 of file rblsmtpd.c.

Here is the caller graph for this function:

◆ usage()

void usage ( void  )

Definition at line 24 of file rblsmtpd.c.

Here is the caller graph for this function:

◆ waitdelay()

void waitdelay ( unsigned long  delay)

Definition at line 159 of file rblsmtpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ decision

int decision = 0

Definition at line 100 of file rblsmtpd.c.

◆ flagfailclosed

int flagfailclosed = 0

Definition at line 96 of file rblsmtpd.c.

◆ flagip6

int flagip6

Definition at line 37 of file rblsmtpd.c.

◆ flagmustnotbounce

int flagmustnotbounce = 0

Definition at line 97 of file rblsmtpd.c.

◆ flagrblbounce

int flagrblbounce = 0

Definition at line 95 of file rblsmtpd.c.

◆ flagrblinfo

int flagrblinfo = 0

Definition at line 98 of file rblsmtpd.c.

◆ in

buffer in = BUFFER_INIT(buffer_unixread,0,inspace,sizeof(inspace))

Definition at line 155 of file rblsmtpd.c.

◆ inspace

char inspace[64]

Definition at line 154 of file rblsmtpd.c.

◆ ip_env

char* ip_env = 0

Definition at line 35 of file rblsmtpd.c.

◆ out

buffer out = BUFFER_INIT(buffer_unixwrite,1,outspace,sizeof(outspace))

Definition at line 157 of file rblsmtpd.c.

◆ outspace

char outspace[1]

Definition at line 156 of file rblsmtpd.c.

◆ smtpcommands

struct commands smtpcommands[]
Initial value:
= {
{ "quit", quit, 0 }
, { "helo", accept, 0 }
, { "ehlo", accept, 0 }
, { "mail", accept, 0 }
, { "rset", accept, 0 }
, { "noop", accept, 0 }
, { 0, reject, 0 }
}
void accept(char *d)
Definition: rblsmtpd.c:219
void reject(char *d)
Definition: rblsmtpd.c:218
void quit(char *d)
Definition: rblsmtpd.c:221

Definition at line 224 of file rblsmtpd.c.

◆ tcp_proto

char* tcp_proto

Definition at line 34 of file rblsmtpd.c.

◆ timeout

unsigned long timeout = 60

Definition at line 94 of file rblsmtpd.c.