Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 593 | Rev 735 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | ;; 22.09.2003 - [Mike Hibbett] : mikeh@oceanfree.net ;; |
18 | ;; 22.09.2003 - [Mike Hibbett] : mikeh@oceanfree.net ;; |
19 | ;; 11.11.2006 - [Johnny_B] and [smb] ;; |
19 | ;; 11.11.2006 - [Johnny_B] and [smb] ;; |
20 | ;; ;; |
20 | ;; ;; |
21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 22... | Line 22... | ||
22 | 22 | ||
Line 23... | Line 23... | ||
23 | $Revision: 593 $ |
23 | $Revision: 735 $ |
24 | 24 | ||
25 | 25 | ||
Line 450... | Line 450... | ||
450 | ; Now, send it! |
450 | ; Now, send it! |
451 | mov edi, ETH_FRAME.Data + ARP_PACKET.TargetMAC ;ptr to destination MAC address |
451 | mov edi, ETH_FRAME.Data + ARP_PACKET.TargetMAC ;ptr to destination MAC address |
452 | mov bx, ETHER_ARP ;type of protocol |
452 | mov bx, ETHER_ARP ;type of protocol |
453 | mov ecx, 28 ;data size |
453 | mov ecx, 28 ;data size |
454 | mov esi, ETH_FRAME.Data + ARP_PACKET ;ptr to data |
454 | mov esi, ETH_FRAME.Data + ARP_PACKET ;ptr to data |
- | 455 | push ebp |
|
455 | call dword [drvr_transmit] ;transmit packet |
456 | call dword [drvr_transmit] ;transmit packet |
- | 457 | pop ebp |
|
Line 456... | Line 458... | ||
456 | 458 | ||
457 | .exit: |
459 | .exit: |
Line 508... | Line 510... | ||
508 | ; Now, send it! |
510 | ; Now, send it! |
509 | mov edi, broadcast_add ; Pointer to 48 bit destination address |
511 | mov edi, broadcast_add ; Pointer to 48 bit destination address |
510 | mov bx, ETHER_ARP ; Type of packet |
512 | mov bx, ETHER_ARP ; Type of packet |
511 | mov ecx, 28 ; size of packet |
513 | mov ecx, 28 ; size of packet |
512 | lea esi, [esp + ARP_PACKET]; pointer to packet data |
514 | lea esi, [esp + ARP_PACKET]; pointer to packet data |
- | 515 | push ebp |
|
513 | call dword [drvr_transmit] ; Call the drivers transmit function |
516 | call dword [drvr_transmit] ; Call the drivers transmit function |
- | 517 | pop ebp |
|
Line 514... | Line 518... | ||
514 | 518 | ||
Line 515... | Line 519... | ||
515 | add esp, 28 ; free memory, allocated before for ARP_PACKET |
519 | add esp, 28 ; free memory, allocated before for ARP_PACKET |
516 | 520 |