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)  

k_sunos510.c File Reference
#include "config.h"
#include <unistd.h>
#include <string.h>
#include <stddef.h>
#include <stdio.h>
#include <nlist.h>
#include <math.h>
#include <sys/cred_impl.h>
#include <kvm.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/signal.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <sys/fcntl.h>
#include <sys/cred.h>
#include <sys/file.h>
#include <sys/stream.h>
#include <sys/dlpi.h>
#include <net/if_types.h>
#include <inet/common.h>
#include <netinet/ip6.h>
#include <inet/ip.h>
#include <inet/tcp.h>
#include <inet/ipclassifier.h>
#include <net/if.h>
#include "pidentd.h"
Include dependency graph for k_sunos510.c:

Go to the source code of this file.

Data Structures

struct  kainfo
 

Macros

#define _KMEMUSER
 
#define _KERNEL
 
#define ffs   kernel_ffs
 
#define ka_init   kernel_ka_init
 
#define getbuf   kernel_ka_init
 
#define exit   kernel_exit
 
#define strsignal   kernel_strsignal
 
#define mutex_init   kernel_mutex_init
 
#define mutex_destroy   kernel_mutex_destroy
 
#define sema_init   kernel_sema_init
 
#define sema_destroy   kernel_sema_destroy
 
#define IPv6_2_IPv4(v6, v4)
 
#define FANOUT_OFFSET(n)
 
#define N_FANOUT   0
 
#define N_HASH_SIZE   1
 

Functions

int ka_init (void)
 
static int getbuf (kvm_t *kd, off_t addr, char *buf, size_t len, char *what)
 
int ka_open (void **misc)
 
int ka_lookup (void *vp, struct kernel *kp)
 

Variables

uint_t ipcl_conn_fanout_size
 

Macro Definition Documentation

◆ _KERNEL

#define _KERNEL

Definition at line 28 of file k_sunos510.c.

◆ _KMEMUSER

#define _KMEMUSER

Definition at line 27 of file k_sunos510.c.

◆ exit

#define exit   kernel_exit

Definition at line 38 of file k_sunos510.c.

◆ FANOUT_OFFSET

#define FANOUT_OFFSET (   n)
Value:
(kip->hash_table + (n) * sizeof(connf_t) + \
offsetof(connf_t, connf_head))

Definition at line 81 of file k_sunos510.c.

◆ ffs

#define ffs   kernel_ffs

Definition at line 35 of file k_sunos510.c.

◆ getbuf

#define getbuf   kernel_ka_init

Definition at line 37 of file k_sunos510.c.

◆ IPv6_2_IPv4

#define IPv6_2_IPv4 (   v6,
  v4 
)
Value:
((v4)->s_addr = *((uint32_t *) \
(((uint8_t *)((struct in6_addr *)v6)->s6_addr)+12)))

Definition at line 71 of file k_sunos510.c.

◆ ka_init

#define ka_init   kernel_ka_init

Definition at line 36 of file k_sunos510.c.

◆ mutex_destroy

#define mutex_destroy   kernel_mutex_destroy

Definition at line 41 of file k_sunos510.c.

◆ mutex_init

#define mutex_init   kernel_mutex_init

Definition at line 40 of file k_sunos510.c.

◆ N_FANOUT

#define N_FANOUT   0

Definition at line 102 of file k_sunos510.c.

◆ N_HASH_SIZE

#define N_HASH_SIZE   1

Definition at line 103 of file k_sunos510.c.

◆ sema_destroy

#define sema_destroy   kernel_sema_destroy

Definition at line 43 of file k_sunos510.c.

◆ sema_init

#define sema_init   kernel_sema_init

Definition at line 42 of file k_sunos510.c.

◆ strsignal

#define strsignal   kernel_strsignal

Definition at line 39 of file k_sunos510.c.

Function Documentation

◆ getbuf()

static int getbuf ( kvm_t kd,
off_t  addr,
char *  buf,
size_t  len,
char *  what 
)
static

Definition at line 133 of file k_sunos510.c.

References kvm_read().

◆ ka_init()

int ka_init ( void  )

Definition at line 118 of file k_sunos510.c.

References osinfo_build, and osinfo_get().

◆ ka_lookup()

int ka_lookup ( void *  vp,
struct kernel kp 
)

◆ ka_open()

int ka_open ( void **  misc)

Variable Documentation

◆ ipcl_conn_fanout_size

uint_t ipcl_conn_fanout_size

Definition at line 67 of file k_sunos510.c.