Re: sendmail aliases/Realtek 8111 problem (bin/139870)

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Wed, 18 Nov 2009 14:55:21 -0800
On Tue, Nov 17, 2009 at 07:55:43PM -0700, Warren Block wrote:
> sendmail was ignoring existing aliases on startup.  This is apparently 
> due to a network interface not being ready in time in combination with a 
> not-FQDN hostname.
> 
> With a hostname of "lightning" (no domain), re0 configured by DHCP, and 
> verbose sendmail logging:
> 
> 050 WARNING: interface re0 is UP with 0.0.0.0 address
> 050 WARNING: local host name (lightning) is not qualified; see cf/README: 
> WHO AM I
> 
> A restart of sendmail after startup works normally because re0 has 
> acquired an address by then.  Entering a FQDN as hostname 
> (hostname="lightning.wonkity.com") in rc.conf works also.
> 
> I would say that this is really a problem with re0 and not with sendmail 
> startup, but don't really know.
> 
> re0 does a DOWN/UP three times on startup.
> 

I'm not sure but this can happen on all systems that have to use
DHCP. The problem I can see here is unnecessary re(4) interface
reinitialization triggered by dhclient even if it can avoid most of
them. Would you try attached patch? It may reduce the number of
interface UP/DOWNs during getting an IP address via DHCP. I haven't
tested the patch though, I no longer have access to re(4)
hardwares.

> re0: <RealTek 
> 8168/8168B/8168C/8168CP/8168D/8168DP/8111B/8111C/8111CP/8111DP PCIe Gigabit 
> Ethernet> port 0xe800-0xe8ff mem 
> 0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci4
> 
> re0_at_pci0:4:0:0:	class=0x020000 card=0x514c1462 chip=0x816810ec 
> rev=0x02 hdr=0x00
>     vendor     = 'Realtek Semiconductor'
>     device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111)'
>     class      = network
>     subclass   = ethernet
> 
> -Warren Block * Rapid City, South Dakota USA

Received on Wed Nov 18 2009 - 21:55:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC