Shut up ARP

Sepherosa Ziehau has introduced a new sysctl:

net.link.ether.inet.log_arp_creation_failure

Set this to zero and you won’t get endless ARP events from networks you aren’t on.  For example, I’m hooked up to a cable modem.  I only get a public routable IP address, but the network used for the cable modem network itself bleeds ARP packets out where my DragonFly machine can see it.  Since it’s on a different network segment than the address I receive through DHCP, it always fails and the system logs it.  For example:

May 11 05:20:52 www kernel: arplookup 100.68.112.145 failed: host is not on local network

I can’t do much about it since that layer 2 leakiness is going to happen, but I can shut it up with this sysctl – and thank goodness, cause I’ve been seeing these messages since first using a DOCSIS modem in… 2001 or so?

In Other BSDs for 2015/04/25

It’s been a relatively calm week, for once.

 

 

Building only one compiler

DragonFly builds two compilers by default.  If you weren’t interesting in building both, there were switches to build only the default, like NO_GCC47.  This changed with every compiler update.

With the switch to GCC 5, the new switch is “NO_ALTCOMPILER”.  That will last through compiler changes.  I’m mentioning this now because sooner or later, you’ll want to gain back some time on a buildworld.

GCC 5 released, switched

DragonFly now has GCC 5.1 release.  If you are running DragonFly master (i.e. 4.1), you’ll probably want to both rebuild world and kernel, and update your packages so they all match.  There’s already packages built with GCC 5.1, so binary package upgrades can happen quickly.  There’s GCC 4.7 packages still available if you aren’t making the jump yet.

If you’re on DragonFly 4.0.x – nothing’s changed.

Changing to gcc 5.0

The default compiler in DragonFly is going to change over from GCC 4.7 to GCC 5.x very soon, to match the GCC 5.1 release.  This means that packages built for DragonFly-master won’t be compatible with the old ones.  You will need to reinstall packages when you next ‘pkg install’.  John Marino has an extensive writeup detailing what’s needed, and the actual change is some days off.

If you are using DragonFly 4.0.x (the release), this doesn’t affect you at all.

Periodic reports on DragonFly

I have had trouble with my daily/weekly periodic reports never making it to my GMail account.  Sascha Wildner pointed out to me that periodic.conf has its own answer already:

daily_output=”/var/log/daily.log”
daily_status_security_output=”/var/log/security.log”
weekly_output=”/var/log/weekly.log”
monthly_output=”/var/log/monthly.log”

… and newsyslog is already set to take care of them.  There’s more in the periodic.conf man page.