mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 07:45:20 +00:00
Enforce proper alignment of packet buffers.
This commit is contained in:
@@ -31,7 +31,7 @@ int minires_update (ns_updrec *);
|
||||
ns_updrec *minires_mkupdrec (int, const char *, unsigned int,
|
||||
unsigned int, unsigned long);
|
||||
void minires_freeupdrec (ns_updrec *);
|
||||
int minires_nmkupdate (res_state, ns_updrec *, unsigned char *, unsigned *);
|
||||
int minires_nmkupdate (res_state, ns_updrec *, double *, unsigned *);
|
||||
ns_rcode minires_nupdate (res_state, ns_updrec *);
|
||||
int minires_ninit (res_state);
|
||||
|
||||
@@ -121,9 +121,9 @@ unsigned int res_randomid (void);
|
||||
ns_rcode res_findzonecut (res_state, const char *, ns_class, int, char *,
|
||||
size_t, struct in_addr *, int, int *, void *);
|
||||
int res_nsend (res_state,
|
||||
unsigned char *, unsigned, unsigned char *, unsigned);
|
||||
int res_nsendsigned (res_state, unsigned char *,
|
||||
unsigned, ns_tsig_key *, unsigned char *, unsigned);
|
||||
double *, unsigned, double *, unsigned);
|
||||
int res_nsendsigned (res_state, double *,
|
||||
unsigned, ns_tsig_key *, double *, unsigned);
|
||||
int ns_samename (const char *, const char *);
|
||||
int res_nameinquery (const char *, int, int,
|
||||
const unsigned char *, const unsigned char *);
|
||||
@@ -147,15 +147,15 @@ int ns_name_uncompress (const u_char *, const u_char *,
|
||||
const u_char *, char *, size_t);
|
||||
int res_nmkquery (res_state, int,
|
||||
const char *, ns_class, ns_type, const unsigned char *,
|
||||
unsigned, const unsigned char *, unsigned char *, unsigned);
|
||||
unsigned, const unsigned char *, double *, unsigned);
|
||||
int ns_initparse (const unsigned char *, unsigned, ns_msg *);
|
||||
int res_nquery(res_state, const char *,
|
||||
ns_class, ns_type, unsigned char *, unsigned anslen);
|
||||
ns_class, ns_type, double *, unsigned anslen);
|
||||
int res_nsearch(res_state, const char *,
|
||||
ns_class, ns_type, unsigned char *, unsigned);
|
||||
ns_class, ns_type, double *, unsigned);
|
||||
const char *res_hostalias (const res_state, const char *, char *, size_t);
|
||||
int res_nquerydomain(res_state, const char *, const char *,
|
||||
ns_class class, ns_type type, unsigned char *, unsigned);
|
||||
ns_class class, ns_type type, double *, unsigned);
|
||||
|
||||
int ns_skiprr(const unsigned char *, const unsigned char *, ns_sect, int);
|
||||
int dn_skipname (const unsigned char *, const unsigned char *);
|
||||
|
@@ -50,7 +50,7 @@
|
||||
|
||||
/*
|
||||
* @(#)resolv.h 8.1 (Berkeley) 6/2/93
|
||||
* $Id: resolv.h,v 1.2 2000/02/02 07:37:17 mellon Exp $
|
||||
* $Id: resolv.h,v 1.3 2000/07/17 20:54:12 mellon Exp $
|
||||
*/
|
||||
|
||||
#ifndef _RESOLV_H_
|
||||
@@ -93,18 +93,18 @@ typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error }
|
||||
res_sendhookact;
|
||||
|
||||
typedef res_sendhookact (*res_send_qhook) (struct sockaddr_in * const *ns,
|
||||
u_char **query,
|
||||
double **query,
|
||||
unsigned *querylen,
|
||||
u_char *ans,
|
||||
double *ans,
|
||||
unsigned anssiz,
|
||||
int *resplen);
|
||||
|
||||
typedef res_sendhookact (*res_send_rhook) (const struct sockaddr_in *ns,
|
||||
u_char *query,
|
||||
unsigned querylen,
|
||||
u_char *ans,
|
||||
unsigned anssiz,
|
||||
int *resplen);
|
||||
double *query,
|
||||
unsigned querylen,
|
||||
double *ans,
|
||||
unsigned anssiz,
|
||||
int *resplen);
|
||||
|
||||
struct res_sym {
|
||||
int number; /* Identifying number, like T_MX */
|
||||
|
Reference in New Issue
Block a user