Subversion Repositories Kolibri OS

Rev

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

Rev 3861 Rev 4052
Line 308... Line 308...
308
        add     esp, 4 ; pop (balance stack)
308
        add     esp, 4 ; pop (balance stack)
Line 309... Line 309...
309
 
309
 
Line -... Line 310...
-
 
310
        ret
310
        ret
311
 
311
 
312
 
312
 
313
if 0
313
;-----------------------------------------------------------------
314
;-----------------------------------------------------------------
314
;
315
;
-
 
316
; ICMP_output
315
; ICMP_output
317
;
316
;
318
; IN:  eax = dest ip
317
; IN:  eax = dest ip
-
 
318
;      ebx = source ip
319
;      bh  = type
319
;      ecx = data length
320
;      bl  = code
320
;      dh  = type
321
;      ecx = data length
321
;      dl  = code
322
;      edx = source ip
322
;      esi = data offset
323
;      esi = data offset
323
;      edi = identifier shl 16 + sequence number
324
;      edi = identifier shl 16 + sequence number
324
;
325
;
Line 325... Line 326...
325
;-----------------------------------------------------------------
326
;-----------------------------------------------------------------
Line 326... Line 327...
326
align 4
327
align 4
327
ICMP_output:
-
 
328
 
-
 
329
        DEBUGF  DEBUG_NETWORK_VERBOSE, "Creating ICMP Packet\n"
-
 
330
 
328
ICMP_output:
331
        push    esi edi dx
329
 
332
 
330
        DEBUGF  DEBUG_NETWORK_VERBOSE, "Creating ICMP Packet\n"
333
        mov     edx, [eax + IP_SOCKET.LocalIP]
331
 
Line 372... Line 370...
372
        ret
370
        ret
373
  .exit:
371
  .exit:
374
        DEBUGF  DEBUG_NETWORK_ERROR, "Creating ICMP Packet failed\n"
372
        DEBUGF  DEBUG_NETWORK_ERROR, "Creating ICMP Packet failed\n"
375
        add     esp, 2*4 + 2
373
        add     esp, 2*4 + 2
376
        ret
374
        ret
-
 
375
end if
Line 377... Line 376...
377
 
376
 
378
 
377
 
379
 
378
 
380
 
379
 
381
;-----------------------------------------------------------------
380
;-----------------------------------------------------------------
382
;
381
;
383
; ICMP_output
382
; ICMP_output_raw
384
;
383
;