Subversion Repositories Kolibri OS

Rev

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

Rev 4259 Rev 4387
Line 17... Line 17...
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
$Revision: 3515 $
19
$Revision: 3515 $
-
 
20
 
-
 
21
IPv4_MAX_FRAGMENTS              = 64
-
 
22
IPv4_MAX_ROUTES                 = 64
-
 
23
 
-
 
24
IPv4_ROUTE_FLAG_UP              = 1 shl 0
-
 
25
IPv4_ROUTE_FLAG_GATEWAY         = 1 shl 1
-
 
26
IPv4_ROUTE_FLAG_HOST            = 1 shl 2
Line 20... Line 27...
20
 
27
IPv4_ROUTE_FLAG_D               = 1 shl 3       ; Route was created by a redirect
Line 21... Line 28...
21
IPv4_MAX_FRAGMENTS              = 64
28
IPv4_ROUTE_FLAG_M               = 1 shl 4       ; Route was modified by a redirect
22
 
29
 
Line 52... Line 59...
52
        Owner                   dd ?    ; Pointer to structure of driver
59
        Owner                   dd ?    ; Pointer to structure of driver
53
                                rb 2    ; to match ethernet header size         ;;; FIXME
60
                                rb 2    ; to match ethernet header size         ;;; FIXME
54
                                        ; Ip header begins here (we will need the IP header to re-construct the complete packet)
61
                                        ; Ip header begins here (we will need the IP header to re-construct the complete packet)
55
ends
62
ends
Line -... Line 63...
-
 
63
 
-
 
64
struct  IPv4_ROUTE
-
 
65
 
-
 
66
        Destination             dd ?
-
 
67
        Gateway                 dd ?
-
 
68
        Flags                   dd ?
-
 
69
        Use                     dd ?
-
 
70
        Interface               dd ?
-
 
71
 
-
 
72
ends
Line 56... Line 73...
56
 
73
 
57
 
74
 
Line 58... Line 75...
58
uglobal
75
uglobal
Line 68... Line 85...
68
        IPv4_packets_rx         rd NET_DEVICES_MAX
85
        IPv4_packets_rx         rd NET_DEVICES_MAX
69
        IPv4_packets_dumped     rd NET_DEVICES_MAX
86
        IPv4_packets_dumped     rd NET_DEVICES_MAX
Line 70... Line 87...
70
 
87
 
Line -... Line 88...
-
 
88
        IPv4_FRAGMENT_LIST      rb IPv4_MAX_FRAGMENTS * sizeof.IPv4_FRAGMENT_slot
-
 
89
 
71
        IPv4_FRAGMENT_LIST      rb IPv4_MAX_FRAGMENTS * sizeof.IPv4_FRAGMENT_slot
90
        IPv4_ROUTES             rd IPv4_MAX_ROUTES * sizeof.IPv4_ROUTE
Line 72... Line 91...
72
 
91
 
73
endg
92
endg