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_sunos58.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 <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 <net/if.h>
#include "pidentd.h"
Include dependency graph for k_sunos58.c:

Go to the source code of this file.

Data Structures

struct  hashentry
 
struct  kainfo
 

Macros

#define _KMEMUSER
 
#define _KERNEL
 
#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)   (kip->hash_table + (n) * sizeof(he_t) + offsetof(he_t, he_tcp))
 
#define N_FANOUT   0
 
#define N_HASH_SIZE   1
 
#define GETBYTE(x, n)   ((unsigned)(((unsigned char*)&x)[n]))
 
#define NFPREAD   64
 
#define uf_ofile   uf_file
 
#define u_flist   u_finfo.fi_list
 
#define u_nofiles   u_finfo.fi_nfiles
 

Typedefs

typedef struct hashentry he_t
 

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)
 

Macro Definition Documentation

◆ _KERNEL

#define _KERNEL

Definition at line 33 of file k_sunos58.c.

◆ _KMEMUSER

#define _KMEMUSER

Definition at line 32 of file k_sunos58.c.

◆ exit

#define exit   kernel_exit

Definition at line 39 of file k_sunos58.c.

◆ FANOUT_OFFSET

#define FANOUT_OFFSET (   n)    (kip->hash_table + (n) * sizeof(he_t) + offsetof(he_t, he_tcp))

Definition at line 84 of file k_sunos58.c.

◆ GETBYTE

#define GETBYTE (   x,
 
)    ((unsigned)(((unsigned char*)&x)[n]))

◆ 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 69 of file k_sunos58.c.

◆ mutex_destroy

#define mutex_destroy   kernel_mutex_destroy

Definition at line 42 of file k_sunos58.c.

◆ mutex_init

#define mutex_init   kernel_mutex_init

Definition at line 41 of file k_sunos58.c.

◆ N_FANOUT

#define N_FANOUT   0

Definition at line 101 of file k_sunos58.c.

◆ N_HASH_SIZE

#define N_HASH_SIZE   1

Definition at line 102 of file k_sunos58.c.

◆ NFPREAD

#define NFPREAD   64

◆ sema_destroy

#define sema_destroy   kernel_sema_destroy

Definition at line 44 of file k_sunos58.c.

◆ sema_init

#define sema_init   kernel_sema_init

Definition at line 43 of file k_sunos58.c.

◆ strsignal

#define strsignal   kernel_strsignal

Definition at line 40 of file k_sunos58.c.

◆ u_flist

#define u_flist   u_finfo.fi_list

◆ u_nofiles

#define u_nofiles   u_finfo.fi_nfiles

◆ uf_ofile

#define uf_ofile   uf_file

Typedef Documentation

◆ he_t

typedef struct hashentry he_t

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_sunos58.c.

References kvm_read().

Referenced by ka_lookup(), and ka_open().

◆ ka_init()

int ka_init ( void  )

Definition at line 117 of file k_sunos58.c.

References osinfo_build, and osinfo_get().

◆ ka_lookup()

◆ ka_open()

int ka_open ( void **  misc)