dhcpcd-discuss

Re: malloc() error; coredump

Neal P. Murphy

Fri May 27 18:16:15 2016

On Fri, 27 May 2016 09:02:14 +0100
Roy Marples <roy@xxxxxxxxxxxx> wrote:

> On 27/05/2016 06:54, Neal P. Murphy wrote:
> > OK. It works smoothly. I ask for a /60 and get one.
> > 
> > The problem? I'm a noob, perhaps a clever one. I included 'script
> > myscript' in the .conf. It was being run very nicely every time. And
> > the program failed every time. Once I removed that script and
> > restored the use of dhcpcd-run-hooks, dhcpcd started working. At
> > least I'm not a complete failure; I can serve as a bad example.
> > 
> > Are some of those hooks or the script itself rather important to the
> > operation of dhcpcd and IPv6?
> 
> OK!
> So if you put the faulty option back you get the memory errors?
> Could you post your faulty config please so I can at least stop it from
> crashing?
> 
> Roy

The rc.update6red script is smoothwall-specific. It does certain housekeeping things when the internet connection comes up or goes down (primarily, it ensures that daemons are (re)started as needed). I suspect you could use just about any script, even one that contains only "#! /bin/bash".

N


----
#
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

script /etc/rc.d/rc.update6red


# Mappings in this script; adjust to fit your system.
#   NIC    MAC                 ZONE
#   ----------------------------------
#   eth0 - xx:xx:0d:17:f2:7d - GREEN
#   eth1 - xx:xx:0d:17:f2:7a - ORANGE
#   eth2 - xx:xx:0d:17:f2:7b - PURPLE
#   eth3 - xx:xx:0d:17:f2:7c - RED
allowinterfaces eth0 eth2 eth3
denyinterfaces lo ipsec0 ipsec1
debug
ipv6only
ipv6ra_own
ipv6ra_own_default
leasetime 31622400
noipv4ll
nodhcp
nodhcp6
noipv6rs
logfile /var/log/dhcpcd6.log

interface eth0
iaid ee:17:f2:7a

interface eth2
iaid ee:17:f2:7c

interface eth3
dhcp6
ipv6rs
iaid ee:17:f2:7d
#ia_pd 0b:17:f2:7d eth0 eth2
ia_na ee:17:f2:7d
ia_pd ee:17:f2:7a/::/60 eth0/1/64 eth2/3/64
#ia_pd ee:17:f2:7c/::/60 eth2/0/64
#ia_pd 0b:17:f2:7d eth2/3
----

Follow-Ups:
Re: malloc() error; coredumpRoy Marples
References:
Re: malloc() error; coredumpNeal P. Murphy
Re: malloc() error; coredumpRoy Marples
Archive administrator: postmaster@marples.name