Project Alice
Loading...
Searching...
No Matches
gateway.c File Reference
#include "default_config.h"
#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <net/route.h>
#include <netinet/in.h>
#include "gateway.h"
#include "pcp_logger.h"
#include "unp.h"
#include "pcp_utils.h"
Include dependency graph for gateway.c:

Go to the source code of this file.

Macros

#define SUCCESS   (0)
 
#define FAILED   (-1)
 
#define USE_WIN32_CODE
 
#define TO_IPV6MAPPED(x)
 

Macro Definition Documentation

◆ FAILED

#define FAILED   (-1)

Definition at line 99 of file gateway.c.

◆ SUCCESS

#define SUCCESS   (0)

Definition at line 98 of file gateway.c.

◆ TO_IPV6MAPPED

#define TO_IPV6MAPPED (   x)
Value:
S6_ADDR32(x)[3] = S6_ADDR32(x)[0];\
S6_ADDR32(x)[0] = 0;\
S6_ADDR32(x)[1] = 0;\
S6_ADDR32(x)[2] = htonl(0xFFFF);
#define S6_ADDR32(sa6)
Definition: pcp_utils.h:114

Definition at line 103 of file gateway.c.

◆ USE_WIN32_CODE

#define USE_WIN32_CODE

Definition at line 100 of file gateway.c.