Subversion Repositories Kolibri OS

Rev

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

Rev 1773 Rev 1774
Line 19... Line 19...
19
;;          GNU GENERAL PUBLIC LICENSE                             ;;
19
;;          GNU GENERAL PUBLIC LICENSE                             ;;
20
;;             Version 2, June 1991                                ;;
20
;;             Version 2, June 1991                                ;;
21
;;                                                                 ;;
21
;;                                                                 ;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 23... Line 23...
23
 
23
 
Line 24... Line 24...
24
$Revision: 1773 $
24
$Revision: 1774 $
25
 
25
 
Line 26... Line 26...
26
__DEBUG_LEVEL_OLD__	equ __DEBUG_LEVEL__	; use seperate debug level for network part of kernel
26
__DEBUG_LEVEL_OLD__	equ __DEBUG_LEVEL__	; use seperate debug level for network part of kernel
Line 74... Line 74...
74
SS_RESTARTSYS		equ 0x100   ; restart blocked system calls
74
SS_RESTARTSYS		equ 0x100	; restart blocked system calls
75
SS_ISDISCONNECTED	equ 0x800   ; socket disconnected from peer
75
SS_ISDISCONNECTED	equ 0x800	; socket disconnected from peer
Line 76... Line 76...
76
 
76
 
77
SS_ASYNC		equ 0x100   ; async i/o notify
77
SS_ASYNC		equ 0x100	; async i/o notify
78
SS_ISCONFIRMING 	equ 0x200   ; deciding to accept connection req
78
SS_ISCONFIRMING 	equ 0x200	; deciding to accept connection req
Line 79... Line 79...
79
SS_MORETOCOME		equ 0x400   ;
79
SS_MORETOCOME		equ 0x400
Line 80... Line 80...
80
 
80
 
Line 143... Line 143...
143
 
143
 
Line 144... Line 144...
144
	rol	word reg, 8
144
	rol	word reg, 8
Line 145... Line -...
145
 
-
 
146
}
-
 
147
 
-
 
148
 
-
 
149
macro packet_to_debug { 	; set esi to packet you want to print, ecx to number of bytes
-
 
150
 
-
 
151
local	.loop
-
 
152
 
-
 
153
  .loop:
-
 
154
	lodsb
-
 
155
	DEBUGF	1,"%x ", eax:2
-
 
156
	loop	@r
-
 
157
 
-
 
158
}
145
 
Line 159... Line 146...
159
 
146
}
Line 160... Line 147...
160
 
147
 
Line 261... Line 248...
261
 
248
 
262
 
249
 
263
 
250
 
264
;-----------------------------------------------------------------
251
;-----------------------------------------------------------------
265
;
252
;
266
; NET_Add_Device:
253
; NET_add_Device:
267
;
254
;
268
;  This function is called by the network drivers,
255
;  This function is called by the network drivers,