Monero
Macros | Functions
getroute.c File Reference
#include <stdio.h>
#include <syslog.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/route.h>
#include <netinet/in.h>
#include "config.h"
#include "../upnputils.h"
Include dependency graph for getroute.c:

Macros

#define SA_SIZE(sa)   (((SA_LEN(sa)) == 0) ? sizeof(long) : (1 + (((SA_LEN(sa)) - 1) | (sizeof(long) - 1))))
 
#define rtm   m_rtmsg.m_rtm
 

Functions

int get_src_for_route_to (const struct sockaddr *dst, void *src, size_t *src_len, int *index)
 

Macro Definition Documentation

◆ rtm

#define rtm   m_rtmsg.m_rtm

◆ SA_SIZE

#define SA_SIZE (   sa)    (((SA_LEN(sa)) == 0) ? sizeof(long) : (1 + (((SA_LEN(sa)) - 1) | (sizeof(long) - 1))))

Function Documentation

◆ get_src_for_route_to()

int get_src_for_route_to ( const struct sockaddr *  dst,
void *  src,
size_t *  src_len,
int *  index 
)