Qsmtp  0.30dev
Functions
ipme.c File Reference

functions to filter out IP addresses of the local machine More...

#include <ipme.h>
#include <qdns.h>
#include <assert.h>
#include <ifaddrs.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>

Functions

struct ipsfilter_my_ips (struct ips *ipl)
 

Detailed Description

functions to filter out IP addresses of the local machine

Function Documentation

struct ips* filter_my_ips ( struct ips ipl)

remove all IP addresses of the local machine from IP list

Parameters
ipllist of IP addresses
Returns
cleaned list
Return values
NULLall listed addresses are local ones

The address structs that match the local machine are freed.

If any errors are encountered while this function runs (e.g. a function called runs out of memory) the original list will be returned.