Hi,

This is a pppoe-client on Atom C2000 based Axiomtek NA361 Hardware.
pppoe is running via VLAN on device em5, which is I354 based:

em5: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 00:60:e0:5a:75:39
        priority: 0
        media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
        status: active
# ifconfig vlan7  
vlan7: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 00:60:e0:5a:75:39
        priority: 0
        vlan: 7 parent interface: em5
        groups: vlan
        status: active
# ifconfig pppoe0
pppoe0: flags=28810<POINTOPOINT,SIMPLEX,MULTICAST,NOINET6> mtu 1492
        priority: 0
        dev: vlan7 state: initial
        sid: 0x0 PADI retries: 0 PADR retries: 0
        groups: pppoe egress
        status: no carrier
        inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff

The pppoe server side has a MAC of 00:30:88:1f:18:9a and the client em5 is 
00:60:e0:5a:75:39

Here, the client asks for the server via broadcast:
20:59:34.771668 00:60:e0:5a:75:39 (oui Unknown) > Broadcast, ethertype 802.1Q 
(0x8100),\
        length 60: vlan 7, p 3, ethertype PPPoE D, PPPoE PADI [Service-Name] \
        [Host-Uniq 0x3DCA3906]
The server responds:
20:59:34.800113 00:30:88:1f:18:9a (oui Unknown) > 00:60:e0:5a:75:39 (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 87: vlan 7, p 6, ethertype PPPoE D,\
        PPPoE PADO [Host-Uniq 0x3DCA3906] [AC-Name 
„FFMR71-se800-B2224180702381“]\
        [AC-Cookie „..lvg}..Bv.>.;8."] [Service-Name]
The client’s answer is going to 00:30:75:39:00:30 instead of 00:30:88:1f:18:9a:
20:59:34.800121 00:60:e0:5a:75:39 (oui Unknown) > 00:30:75:39:00:30 (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 60: vlan 7, p 3, ethertype PPPoE D, \
        PPPoE PADR [Service-Name] [AC-Cookie „..lvg}..Bv.>.;8."] [Host-Uniq 
0x3DCA3906]
This is the bug.

An example of a working negotiation (another obsd client, with other hardware,
00:80:c8:c9:7f:e0, same server):

20:56:06.361036 00:80:c8:c9:7f:e0 (oui Unknown) > Broadcast, ethertype 802.1Q 
(0x8100),\
        length 60: vlan 7, p 3, ethertype PPPoE D, PPPoE PADI [Service-Name] \
        [Host-Uniq 0x0B998AFC]
20:56:06.438095 00:30:88:1f:18:9a (oui Unknown) > 00:80:c8:c9:7f:e0 (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 87: vlan 7, p 6, ethertype PPPoE D,\
        PPPoE PADO [Host-Uniq 0x0B998AFC] [AC-Name 
„FFMR71-se800-B2224180702381“]\
        [AC-Cookie „..G..#z Cd0=.9{."] [Service-Name]
20:56:06.438105 00:80:c8:c9:7f:e0 (oui Unknown) > 00:30:88:1f:18:9a (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 60: vlan 7, p 3, ethertype PPPoE D,\
        PPPoE PADR [Service-Name] [AC-Cookie „..G..#z Cd0=.9{."] [Host-Uniq 
0x0B998AFC]
20:56:06.590633 00:30:88:1f:18:9a (oui Unknown) > 00:80:c8:c9:7f:e0 (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 67: vlan 7, p 6, ethertype PPPoE D,\
        PPPoE PADS [ses 0x256d] [Service-Name] [Host-Uniq 0x0B998AFC]\
        AC-Name „FFMR71-se800-B2224180702381“]
20:56:06.590643 00:80:c8:c9:7f:e0 (oui Unknown) > 00:30:88:1f:18:9a (oui 
Unknown),\
        ethertype 802.1Q (0x8100), length 60: vlan 7, p 3, ethertype PPPoE S,\
        PPPoE  [ses 0x256d] LCP (0xc021), length 16: LCP, Conf-Request (0x01), 
id 1, length 16
        encoded length 14 (=Option(s) length 10)
          Magic-Num Option (0x05), length 6: 0x1f15ce89
          MRU Option (0x01), length 4: 1492

Axel
PS: dmesg attached: 
# dmesg                                                                         
                                                                                
                                                                                
        
OpenBSD 5.6 (GENERIC.MP) #2: Wed Nov 12 17:52:30 CET 2014
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4264062976 (4066MB)
avail mem = 4141768704 (3949MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7f98a000 (53 entries)
bios0: vendor American Megatrends Inc. version "5.6.5" date 05/19/2014
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP FPDT MCFG WDAT UEFI APIC BDAT HPET SSDT HEST BERT ERST 
EINJ
acpi0: wakeup devices PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) EHC1(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU C2358 @ 1.74GHz, 1750.33 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 83MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Atom(TM) CPU C2358 @ 1.74GHz, 1750.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEX1)
acpiprt2 at acpi0: bus 2 (PEX2)
acpiprt3 at acpi0: bus 3 (PEX3)
acpiprt4 at acpi0: bus 4 (PEX4)
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
cpu0: Enhanced SpeedStep 1750 MHz: speeds: 1744, 1743, 1660, 1577, 1494, 1411, 
1328, 1245, 1162 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x1f0e rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
00:60:e0:5a:75:34
ppb1 at pci0 dev 2 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
00:60:e0:5a:75:35
ppb2 at pci0 dev 3 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 4 function 0 "Intel Atom C2000 PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
vendor "Intel", unknown product 0x1f18 (class processor subclass Co-processor, 
rev 0x02) at pci0 dev 11 function 0 not configured
pchb1 at pci0 dev 14 function 0 "Intel Atom C2000 RAS" rev 0x02
"Intel Atom C2000 RCEC" rev 0x02 at pci0 dev 15 function 0 not configured
"Intel Atom C2000 SMBus" rev 0x02 at pci0 dev 19 function 0 not configured
em2 at pci0 dev 20 function 0 "Intel I354 SGMII" rev 0x03: msi, address 
00:60:e0:5a:75:36
em3 at pci0 dev 20 function 1 "Intel I354 SGMII" rev 0x03: msi, address 
00:60:e0:5a:75:37
em4 at pci0 dev 20 function 2 "Intel I354 SGMII" rev 0x03: msi, address 
00:60:e0:5a:75:38
em5 at pci0 dev 20 function 3 "Intel I354 SGMII" rev 0x03: msi, address 
00:60:e0:5a:75:39
ehci0 at pci0 dev 22 function 0 "Intel Atom C2000 USB" rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ahci0 at pci0 dev 23 function 0 "Intel Atom C2000 AHCI" rev 0x02: msi, AHCI 1.3
scsibus1 at ahci0: 32 targets
ahci1 at pci0 dev 24 function 0 "Intel Atom C2000 AHCI" rev 0x02: msi, AHCI 1.3
scsibus2 at ahci1: 32 targets
sd0 at scsibus2 targ 0 lun 0: <ATA, INTEL SSDSA2CT04, 4PC1> SCSI3 0/direct 
fixed naa.55cd2e40003e4c33
sd0: 38166MB, 512 bytes/sector, 78165360 sectors, thin
pcib0 at pci0 dev 31 function 0 "Intel Atom C2000 PCU" rev 0x02
ichiic0 at pci0 dev 31 function 3 "Intel Atom C2000 PCU SMBus" rev 0x02: apic 2 
int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x18: mcp98243
sdtemp1 at iic0 addr 0x19: mcp98243
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
spdmem1 at iic0 addr 0x51: 2GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
uhub1 at uhub0 port 1 "Intel product 0x07db" rev 2.00/0.02 addr 2
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (e3f305c79d512f3a.a) swap on sd0b dump on sd0b
carp2: state transition: BACKUP -> MASTER
carp2: state transition: MASTER -> BACKUP
# ifconfig em5
em5: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 00:60:e0:5a:75:39
        priority: 0
        media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
        status: active
# ifconfig pppoe0
pppoe0: flags=28810<POINTOPOINT,SIMPLEX,MULTICAST,NOINET6> mtu 1492
        priority: 0
        dev: vlan7 state: initial
        sid: 0x0 PADI retries: 0 PADR retries: 0
        groups: pppoe egress
        status: no carrier
        inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff
# ifconfig vlan7  
vlan7: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
        lladdr 00:60:e0:5a:75:39
        priority: 0
        vlan: 7 parent interface: em5
        groups: vlan
        status: active
—
PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius

Reply via email to