On 16/10/2011 3:16 PM, Christiano F. Haesbaert wrote:
On Sun, Oct 16, 2011 at 02:41:08PM +0800, Samuel Kidman wrote:
On 16/10/2011 12:21 PM, Christiano F. Haesbaert wrote:
On Sat, Oct 15, 2011 at 06:08:50PM +0800, Samuel Kidman wrote:
Hello

I have just installed OpenBSD on a hobby server. All is going well
except I have hit a pretty major stumbling block in that I
can't get my network configuration working. I have assigned a static
IPv4 address to the server, and I tried pinging my
desktop computer. I opened up a packet sniffer on my desktop and I
can see the packets coming in from the server,
however the IP checksums are all set to 0. I read in the release
notes that OpenBSD will set the checksum to zero before
passing the packet to hardware to perform the checksum operation.
This obviously isn't working on my system, so I was
wondering how to get it working, or how to just get it done in software?

I am using the re (realtek ethernet) driver.

Regards, Sam
Yes, re(4) has csum offloading:
         
hwfeatures=8037<CSUM_IPv4,CSUM_TCPv4,CSUM_UDPv4,VLAN_MTU,VLAN_HWTAGGING,WOL>

Are you running current ?
Can you paste a dmesg ?
It's difficult to post the whole thing with no network connection. I
am writing down what is on screen with a pen and then typing that
into e-mails on my desktop. Here are the lines I thought were most
relevant from dmesg, I can get others if you wish:

first line:
OpenBSD 4.9 (GENERIC) #671: Wed Mar 2 07:09:00 MST 2011

re0 line:
re0 at pci2 dev0 function0 "Realtek 8168" rev 0x06: unknown ASIC
(0x2c80), apic 2 int 16 (irq 10), address ff:ff:ff:ff:ff:ff

There was a bug in 4.8 I believe, maybe it snapped into 4.9, I can't
remember.

The thing is you can't enable checksumming in software, and you
shouldn't, if you're re(4) for some reason can't do offload
checksumming, we should be able to detect and disable.

By now we enable hw checksumming for all re(4):
sys/dev/ic/re.c:1133
        ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_IPv4 |
                               IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4;


Run current and it will work.
Thanks, I installed current and it did, indeed, work. Thanks for your help.

Reply via email to