]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-prototypes.patch
- patch no-ipv6 - don't require ipv6 support in kernel
[packages/dhcp.git] / dhcp-prototypes.patch
1 --- dhcp-3.0.5/dst/dst_api.c.prototypes 2007-04-01 16:29:10.000000000 -0400
2 +++ dhcp-3.0.5/dst/dst_api.c    2007-04-01 16:29:10.000000000 -0400
3 @@ -58,6 +58,10 @@
4  
5  #include "dst_internal.h"
6  
7 +/* prototypes */
8 +extern int b64_pton(char const *src, u_char *target, size_t targsize);
9 +extern int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
10 +
11  /* static variables */
12  static int done_init = 0;
13  dst_func *dst_t_func[DST_MAX_ALGS];
14 --- dhcp-3.0.5/dst/dst_support.c.prototypes     2001-02-22 02:22:08.000000000 -0500
15 +++ dhcp-3.0.5/dst/dst_support.c        2007-04-01 16:29:10.000000000 -0400
16 @@ -32,6 +32,10 @@
17  
18  #include "dst_internal.h"
19  
20 +/* prototypes */
21 +extern int b64_pton(char const *src, u_char *target, size_t targsize);
22 +extern int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
23 +
24  /*
25   * dst_s_conv_bignum_u8_to_b64
26   *     This function converts binary data stored as a u_char[] to a
27 --- dhcp-3.0.5/includes/minires/minires.h.prototypes    2004-06-10 13:59:37.000000000 -0400
28 +++ dhcp-3.0.5/includes/minires/minires.h       2007-04-01 16:29:10.000000000 -0400
29 @@ -65,7 +65,6 @@
30  #define res_protocolname MRres_protocolname
31  #define res_servicename MRres_servicename
32  #define ns_datetosecs MRns_datetosecs
33 -#define b64_pton MRb64_pton
34  #define res_ninit minires_ninit
35  #define res_randomid MRres_randomid
36  #define res_findzonecut MRres_findzonecut
37 --- dhcp-3.0.5/minires/res_mkupdate.c.prototypes        2007-04-01 16:29:10.000000000 -0400
38 +++ dhcp-3.0.5/minires/res_mkupdate.c   2007-04-01 16:30:12.000000000 -0400
39 @@ -49,6 +49,10 @@
40  #include "minires/minires.h"
41  #include "arpa/nameser.h"
42  
43 +/* prototypes */
44 +extern int b64_pton(char const *src, u_char *target, size_t targsize);
45 +int dn_comp(const char *src, u_char *dst, unsigned dstsiz, u_char **dnptrs, u_char **lastdnptr);
46 +
47  /* Options.  Leave them on. */
48  #define DEBUG
49  #define MAXPORT 1024
50 --- dhcp-3.0.5/minires/res_comp.c.prototypes    2004-06-10 13:59:42.000000000 -0400
51 +++ dhcp-3.0.5/minires/res_comp.c       2007-04-01 16:31:02.000000000 -0400
52 @@ -91,6 +91,11 @@
53  #include "minires/minires.h"
54  #include "arpa/nameser.h"
55  
56 +/* prototypes */
57 +int ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz);
58 +int ns_name_compress(const char *src, u_char *dst, size_t dstsiz, const u_char **dnptrs, const u_char **lastdnptr);
59 +int ns_name_skip(const u_char **ptrptr, const u_char *eom);
60 +
61  /*
62   * Expand compressed domain name 'comp_dn' to full domain name.
63   * 'msg' is a pointer to the begining of the message,
64 --- dhcp-3.0.5/minires/res_init.c.prototypes    2004-06-10 13:59:43.000000000 -0400
65 +++ dhcp-3.0.5/minires/res_init.c       2007-04-01 16:31:38.000000000 -0400
66 @@ -102,6 +102,7 @@
67  #define DEBUG
68  
69  static void res_setoptions (res_state, const char *, const char *);
70 +u_int res_randomid(void);
71  
72  #ifdef RESOLVSORT
73  static const char sort_mask[] = "/&";
This page took 0.063102 seconds and 3 git commands to generate.