-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnssoa.h
26 lines (21 loc) · 769 Bytes
/
dnssoa.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* dnssoa.h -- DNS SOA request parsing
*
* Copyright Dean Scarff
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License.
*/
#ifndef DNSSOA_H
#define DNSSOA_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
/* Extract the zone and the zone master server (MNAME) from a DNS SOA
* response `response' to `zone' and `mname' respectively. The
* response should have length `rlen'. If the header doesn't look
* right or a SOA can't be found, set the first character of `mname'
* to 0 but do nothing else. Hope there's no trouble. */
void dnssoa_parse(
char *zone, char *mname, const unsigned char *response, size_t rlen);
#endif /* !defined(DNSSOA_H) */