Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist/src Import dhcpcd-8.1.1 with the fo...



details:   https://anonhg.NetBSD.org/src/rev/2ea75dcac003
branches:  trunk
changeset: 845794:2ea75dcac003
user:      roy <roy%NetBSD.org@localhost>
date:      Wed Oct 16 14:53:22 2019 +0000

description:
Import dhcpcd-8.1.1 with the following changes:

 * IPv6: Fix a potential crash when learning interface addresses.
 * DHCP: Fix fallout from dhcpcd-8.1.0 for checksum calculation.

diffstat:

 external/bsd/dhcpcd/dist/src/defs.h       |  6 +-----
 external/bsd/dhcpcd/dist/src/dhcp.h       |  2 --
 external/bsd/dhcpcd/dist/src/dhcp6.h      |  2 --
 external/bsd/dhcpcd/dist/src/dhcpcd.h     |  7 -------
 external/bsd/dhcpcd/dist/src/if-options.h |  2 +-
 external/bsd/dhcpcd/dist/src/ipv6nd.h     |  2 --
 6 files changed, 2 insertions(+), 19 deletions(-)

diffs (88 lines):

diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/defs.h
--- a/external/bsd/dhcpcd/dist/src/defs.h       Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/defs.h       Wed Oct 16 14:53:22 2019 +0000
@@ -29,11 +29,7 @@
 #define CONFIG_H
 
 #define PACKAGE                        "dhcpcd"
-#define VERSION                        "8.1.0"
-
-#ifndef DHCPCD_USER
-# define DHCPCD_USER           "_dhcpcd"
-#endif
+#define VERSION                        "8.1.1"
 
 #ifndef CONFIG
 # define CONFIG                        SYSCONFDIR "/" PACKAGE ".conf"
diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/dhcp.h
--- a/external/bsd/dhcpcd/dist/src/dhcp.h       Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/dhcp.h       Wed Oct 16 14:53:22 2019 +0000
@@ -253,8 +253,6 @@
 ssize_t print_rfc3361(FILE *, const uint8_t *, size_t);
 ssize_t print_rfc3442(FILE *, const uint8_t *, size_t);
 
-int dhcp_open(struct dhcpcd_ctx *);
-void dhcp_recvmsg(struct dhcpcd_ctx *, struct msghdr *);
 void dhcp_printoptions(const struct dhcpcd_ctx *,
     const struct dhcp_opt *, size_t);
 uint16_t dhcp_get_mtu(const struct interface *);
diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/dhcp6.h
--- a/external/bsd/dhcpcd/dist/src/dhcp6.h      Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/dhcp6.h      Wed Oct 16 14:53:22 2019 +0000
@@ -220,8 +220,6 @@
        (D6_CSTATE((ifp)) &&                                                   \
        D6_CSTATE((ifp))->reason && dhcp6_dadcompleted((ifp)))
 
-int dhcp6_open(struct dhcpcd_ctx *);
-void dhcp6_recvmsg(struct dhcpcd_ctx *, struct msghdr *, struct ipv6_addr *);
 void dhcp6_printoptions(const struct dhcpcd_ctx *,
     const struct dhcp_opt *, size_t);
 const struct ipv6_addr *dhcp6_iffindaddr(const struct interface *ifp,
diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/dhcpcd.h
--- a/external/bsd/dhcpcd/dist/src/dhcpcd.h     Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/dhcpcd.h     Wed Oct 16 14:53:22 2019 +0000
@@ -32,8 +32,6 @@
 #include <sys/socket.h>
 #include <net/if.h>
 
-#include <stdio.h>
-
 #include "config.h"
 #ifdef HAVE_SYS_QUEUE_H
 #include <sys/queue.h>
@@ -179,11 +177,6 @@
 
        char *randomstate; /* original state */
 
-#ifdef PRIVSEP
-       char *priv_user;
-       int priv_fd;
-#endif
-
 #ifdef INET
        struct dhcp_opt *dhcp_opts;
        size_t dhcp_opts_len;
diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/if-options.h
--- a/external/bsd/dhcpcd/dist/src/if-options.h Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/if-options.h Wed Oct 16 14:53:22 2019 +0000
@@ -78,7 +78,7 @@
 #define DHCPCD_HOSTNAME                        (1ULL << 18)
 #define DHCPCD_CLIENTID                        (1ULL << 19)
 #define DHCPCD_LINK                    (1ULL << 20)
-#define DHCPCD_PRIVSEP                 (1ULL << 21)
+// unused                              (1ULL << 21)
 #define DHCPCD_BACKGROUND              (1ULL << 22)
 #define DHCPCD_VENDORRAW               (1ULL << 23)
 #define DHCPCD_NOWAITIP                        (1ULL << 24) /* To force daemonise */
diff -r 025daa7c861e -r 2ea75dcac003 external/bsd/dhcpcd/dist/src/ipv6nd.h
--- a/external/bsd/dhcpcd/dist/src/ipv6nd.h     Wed Oct 16 14:50:27 2019 +0000
+++ b/external/bsd/dhcpcd/dist/src/ipv6nd.h     Wed Oct 16 14:53:22 2019 +0000
@@ -91,8 +91,6 @@
 #define        RETRANS_TIMER                   1000    /* milliseconds */
 #define        DELAY_FIRST_PROBE_TIME          5       /* seconds */
 
-int ipv6nd_open(struct dhcpcd_ctx *);
-void ipv6nd_recvmsg(struct dhcpcd_ctx *, struct msghdr *);
 void ipv6nd_printoptions(const struct dhcpcd_ctx *,
     const struct dhcp_opt *, size_t);
 void ipv6nd_startrs(struct interface *);



Home | Main Index | Thread Index | Old Index