Subversion Repositories Kolibri OS

Rev

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

Rev 3360 Rev 3386
Line 14... Line 14...
14
;;          GNU GENERAL PUBLIC LICENSE                             ;;
14
;;          GNU GENERAL PUBLIC LICENSE                             ;;
15
;;             Version 2, June- 1991                               ;;
15
;;             Version 2, June- 1991                               ;;
16
;;                                                                 ;;
16
;;                                                                 ;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
$Revision: 3360 $
19
$Revision: 3386 $
20
 
20
 
21
ARP_NO_ENTRY            = 0
21
ARP_NO_ENTRY            = 0
22
ARP_VALID_MAPPING       = 1
22
ARP_VALID_MAPPING       = 1
Line 515... Line 515...
515
;-----------------------------------------------
515
;-----------------------------------------------
516
; At this point, we got an ARP entry in the list
516
; At this point, we got an ARP entry in the list
517
  .found_it:
517
  .found_it:
518
        cmp     [esi + ARP_entry.Status], ARP_VALID_MAPPING             ; Does it have a MAC assigned?
518
        cmp     [esi + ARP_entry.Status], ARP_VALID_MAPPING             ; Does it have a MAC assigned?
519
        je      .valid
519
        je      .valid
-
 
520
 
520
if ARP_BLOCK
521
if ARP_BLOCK
521
        jmp     .give_up
-
 
522
else
522
 
523
        cmp     [esi + ARP_entry.Status], ARP_AWAITING_RESPONSE         ; Are we waiting for reply from remote end?
523
        cmp     [esi + ARP_entry.Status], ARP_AWAITING_RESPONSE         ; Are we waiting for reply from remote end?
524
        jne     .give_up
524
        jne     .give_up
525
        push    esi
525
        push    esi
526
        mov     esi, 10                 ; wait 10 ms
526
        mov     esi, 10                 ; wait 10 ms
527
        call    delay_ms
527
        call    delay_ms
528
        pop     esi
528
        pop     esi
529
        jmp     .found_it               ; now check again
529
        jmp     .found_it               ; now check again
-
 
530
 
-
 
531
else
-
 
532
 
-
 
533
        jmp     .give_up
-
 
534
 
530
end if
535
end if
Line 531... Line 536...
531
 
536
 
532
  .valid:
537
  .valid:
533
        DEBUGF  1,"ARP_IP_to_MAC: found MAC\n"
538
        DEBUGF  1,"ARP_IP_to_MAC: found MAC\n"