unbound 0.1
edns-subnet.h File Reference

Subnet option related constants. More...

#include "util/net_help.h"

Data Structures

struct  ecs_data
 ECS option. More...

Macros

#define EDNSSUBNET_ADDRFAM_IP4   1
 In use by the edns subnet option code, as assigned by IANA.
#define EDNSSUBNET_ADDRFAM_IP6   2

Functions

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 success

Detailed Description

Subnet option related constants.

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 success

References copy_clear().

Referenced by copy_clear().