open62541 1.4.19
Open source implementation of OPC UA
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
mdnsd.h File Reference
#include <net/if.h>
#include <netinet/in.h>
#include <libmdnsd/mdnsd.h>
#include <libmdnsd/sdtxt.h>
#include "queue.h"

Go to the source code of this file.

Data Structures

struct  iface
 

Macros

#define NELEMS(array)   (sizeof(array) / sizeof((array)[0]))
 
#define IN_ZERONET(addr)   ((addr & IN_CLASSA_NET) == 0)
 
#define IN_LOOPBACK(addr)   ((addr & IN_CLASSA_NET) == 0x7f000000)
 
#define IN_LINKLOCALNETNUM   0xa9fe0000
 
#define IN_LINKLOCAL(addr)   ((addr & IN_CLASSB_NET) == IN_LINKLOCALNETNUM)
 

Functions

void mdnsd_conflict (char *name, int type, void *arg)
 
struct iface * iface_iterator (int first)
 
struct iface * iface_find (const char *ifname)
 
void iface_free (struct iface *iface)
 
void iface_init (char *ifname)
 
void iface_exit (void)
 
int conf_init (struct iface *iface, const char *path, const char *hostnm)
 
int pidfile (const char *basename)
 
size_t strlcpy (char *dst, const char *src, size_t siz)
 

Macro Definition Documentation

◆ IN_LINKLOCAL

#define IN_LINKLOCAL (   addr)    ((addr & IN_CLASSB_NET) == IN_LINKLOCALNETNUM)

Definition at line 55 of file mdnsd.h.

◆ IN_LINKLOCALNETNUM

#define IN_LINKLOCALNETNUM   0xa9fe0000

Definition at line 54 of file mdnsd.h.

◆ IN_LOOPBACK

#define IN_LOOPBACK (   addr)    ((addr & IN_CLASSA_NET) == 0x7f000000)

Definition at line 50 of file mdnsd.h.

◆ IN_ZERONET

#define IN_ZERONET (   addr)    ((addr & IN_CLASSA_NET) == 0)

Definition at line 46 of file mdnsd.h.

◆ NELEMS

#define NELEMS (   array)    (sizeof(array) / sizeof((array)[0]))

From The Practice of Programming, by Kernighan and Pike.

Definition at line 42 of file mdnsd.h.

Function Documentation

◆ conf_init()

int conf_init ( struct iface *  iface,
const char *  path,
const char *  hostnm 
)

conf.c

◆ iface_exit()

void iface_exit ( void  )

◆ iface_find()

struct iface * iface_find ( const char *  ifname)

◆ iface_free()

void iface_free ( struct iface *  iface)

◆ iface_init()

void iface_init ( char *  ifname)

◆ iface_iterator()

struct iface * iface_iterator ( int  first)

addr.c

◆ mdnsd_conflict()

void mdnsd_conflict ( char *  name,
int  type,
void *  arg 
)

◆ pidfile()

int pidfile ( const char *  basename)

replacement functions for systems that don't have them

◆ strlcpy()

size_t strlcpy ( char *  dst,
const char *  src,
size_t  siz 
)