Subversion Repositories Kolibri OS

Rev

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

Rev 3600 Rev 3601
Line 31... Line 31...
31
        .bytes_tx        dq 0
31
        .bytes_tx       dq 0
32
        .bytes_rx        dq 0
32
        .bytes_rx       dq 0
33
        .packets_tx      dd 0
33
        .packets_tx     dd 0
34
        .packets_rx      dd 0
34
        .packets_rx     dd 0
Line -... Line 35...
-
 
35
 
-
 
36
        .link_state     dd -1
-
 
37
        .hwacc          dd 0
35
 
38
 
Line 36... Line 39...
36
        .namestr         db 'loopback', 0
39
        .namestr        db 'loopback', 0
37
 
40
 
Line 38... Line 41...
38
        .dummy_fn:
41
        .dummy_fn:
Line -... Line 42...
-
 
42
                ret
-
 
43
 
-
 
44
endg
-
 
45
 
-
 
46
 
-
 
47
macro   LOOP_init {
-
 
48
local   .fail
-
 
49
 
-
 
50
        mov     ebx, LOOPBACK_DEVICE
-
 
51
        call    NET_add_device
-
 
52
 
-
 
53
        cmp     eax, -1
-
 
54
        je      .fail
-
 
55
 
-
 
56
        mov     [IP_LIST], 127 + 1 shl 24
-
 
57
        mov     [SUBNET_LIST], 255
-
 
58
        mov     [BROADCAST_LIST], 0xffffff00 + 127
39
                ret
59
 
40
 
60
  .fail:
41
endg
61
}
42
 
62
 
43
;-----------------------------------------------------------------
63
;-----------------------------------------------------------------