Download as a PDF
Transcript
- #ifdef KANDY_SEC_TEST
- find_local()
- {
struct ifconf ifc;
struct ifreq ifreq;
struct ifreq *ifr;
struct ifreq *the_end;
int
sock;
char
buf[BUFSIZ];
/*
* Get list of network interfaces. We use a huge buffer to allow
for the
* presence of non-IP interfaces.
*/
if ((sock = socket(PF_INET, SOCK_DGRAM, 0)) < 0) {
--- 104,113 ---***************
*** 200,211 ****
}
(void) close(sock);
return (num_local);
}
- #endif
/* from_local - determine whether request comes from the local system
*/
from_local(addr)
struct sockaddr_in *addr;
{
--- 150,159 ----
*** daemon.c
2004-03-22 08:14:51.000000000 -0800
--- /home/tux/portmap/stock/portmap_5beta/daemon.c
1992-06-11
13:53:12.000000000 -0700
***************
*** 43,91 ****
#define STDERR_FILENO 2
/* From paths.h */
#define _PATH_DEVNULL "/dev/null"
-
/*
This header file contains necessary
function for output message that are helpful
for debugging.
*/
#include "kandydgb.h"
daemon(nochdir, noclose)
int nochdir, noclose;
50