Subversion Repositories Kolibri OS

Rev

Rev 3556 | Rev 3601 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3556 Rev 3600
Line 60... Line 60...
60
 
60
 
Line 61... Line 61...
61
        NumARP          dd ?
61
        NumARP          dd ?
Line 62... Line 62...
62
 
62
 
63
        ARP_table       rb ARP_TABLE_SIZE * sizeof.ARP_entry    ; TODO: separate ARP table and stats per interface
63
        ARP_table       rb ARP_TABLE_SIZE * sizeof.ARP_entry    ; TODO: separate ARP table and stats per interface
64
 
64
 
Line 65... Line 65...
65
        ARP_PACKETS_TX  rd MAX_NET_DEVICES
65
        ARP_PACKETS_TX  rd NET_DEVICES_MAX
Line 82... Line 82...
82
 
82
 
83
        xor     eax, eax
83
        xor     eax, eax
Line 84... Line 84...
84
        mov     [NumARP], eax
84
        mov     [NumARP], eax
85
 
85
 
86
        mov     edi, ARP_PACKETS_TX
86
        mov     edi, ARP_PACKETS_TX
Line 87... Line 87...
87
        mov     ecx, 3*MAX_NET_DEVICES
87
        mov     ecx, 3*NET_DEVICES_MAX
Line 88... Line 88...
88
        rep     stosd
88
        rep     stosd
Line 316... Line 316...
316
        mov     ebx, [NET_DRV_LIST + edi]       ; device ptr
316
        mov     ebx, [NET_DRV_LIST + edi]       ; device ptr
Line 317... Line 317...
317
 
317
 
318
        lea     eax, [ebx + ETH_DEVICE.mac]     ; local device mac
318
        lea     eax, [ebx + ETH_DEVICE.mac]     ; local device mac
319
        mov     edx, ETH_BROADCAST              ; broadcast mac
319
        mov     edx, ETH_BROADCAST              ; broadcast mac
320
        mov     ecx, sizeof.ARP_header
320
        mov     ecx, sizeof.ARP_header
321
        mov     di, ETHER_ARP
321
        mov     di, ETHER_PROTO_ARP
322
        call    ETH_output
322
        call    ETH_output
Line 323... Line 323...
323
        jz      .exit
323
        jz      .exit