Electroneum
Loading...
Searching...
No Matches
edns-subnet.h File Reference
#include "util/net_help.h"
Include dependency graph for edns-subnet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ecs_data

Macros

#define EDNSSUBNET_EDNSSUBNET_H
#define EDNSSUBNET_ADDRFAM_IP4   1
#define EDNSSUBNET_ADDRFAM_IP6   2

Functions

int copy_clear (uint8_t *dst, size_t dstlen, uint8_t *src, size_t srclen, size_t n)

Detailed Description

Subnet option related constants.

Definition in file edns-subnet.h.

Macro Definition Documentation

◆ EDNSSUBNET_ADDRFAM_IP4

#define EDNSSUBNET_ADDRFAM_IP4   1

In use by the edns subnet option code, as assigned by IANA

Definition at line 46 of file edns-subnet.h.

◆ EDNSSUBNET_ADDRFAM_IP6

#define EDNSSUBNET_ADDRFAM_IP6   2

Definition at line 47 of file edns-subnet.h.

◆ EDNSSUBNET_EDNSSUBNET_H

#define EDNSSUBNET_EDNSSUBNET_H

Definition at line 43 of file edns-subnet.h.

Function Documentation

◆ copy_clear()

int copy_clear ( uint8_t * dst,
size_t dstlen,
uint8_t * src,
size_t srclen,
size_t n )

copy the first n BITS from src to dst iff both src and dst are large enough, return 0 on succes