pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

send.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <pwd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pidentd.h"
Include dependency graph for send.c:

Go to the source code of this file.

Functions

static int check_noident (char *dir)
 
void send_error (int fd, int l_port, int r_port, const char *what, struct sockaddr_in *remote_addr)
 
void send_result (int fd, struct kernel *kp)
 
void send_version (int fd, struct sockaddr_in *remote_addr)
 

Variables

int uidonly_flag = 0
 
int noident_flag = 0
 
int result_syslog_level = -1
 
char * charset = NULL
 
char * opsys = "UNIX"
 

Function Documentation

◆ check_noident()

static int check_noident ( char *  dir)
static

Definition at line 40 of file send.c.

References F_OK.

Referenced by send_result().

◆ send_error()

void send_error ( int  fd,
int  l_port,
int  r_port,
const char *  what,
struct sockaddr_in *  remote_addr 
)

Definition at line 63 of file send.c.

References result_syslog_level, s_inet_ntox(), s_snprintf(), and s_write().

Referenced by handle_request(), and send_result().

◆ send_result()

◆ send_version()

void send_version ( int  fd,
struct sockaddr_in *  remote_addr 
)

Definition at line 167 of file send.c.

References osinfo_build, result_syslog_level, s_inet_ntox(), s_snprintf(), s_write(), and server_version.

Referenced by handle_request().

Variable Documentation

◆ charset

char* charset = NULL

Definition at line 35 of file send.c.

Referenced by conf_parse(), and send_result().

◆ noident_flag

int noident_flag = 0

Definition at line 32 of file send.c.

Referenced by conf_parse(), main(), and send_result().

◆ opsys

char* opsys = "UNIX"

Definition at line 36 of file send.c.

Referenced by conf_parse(), main(), and send_result().

◆ result_syslog_level

int result_syslog_level = -1

Definition at line 33 of file send.c.

Referenced by conf_parse(), send_error(), send_result(), and send_version().

◆ uidonly_flag

int uidonly_flag = 0

Definition at line 31 of file send.c.

Referenced by conf_parse(), main(), and send_result().