Mercurial > archived > louis > epitech > mq > rathaxes
annotate rathaxes_start_to_implement_sk_buff_in_the_lkm.patch @ 23:f0ab7ee21dd8
Merge
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Sat, 07 Jan 2012 19:28:54 +0100 |
parents | 65523c345b40 |
children | 60dd543b67b0 |
rev | line source |
---|---|
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
1 # HG changeset patch |
23 | 2 # Parent 7ed8c85f91b681a259ea6f7fcb39ec9ed4591a57 |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
3 rathaxes: add sk_buff abstraction and add the implementation of the xmit function for the ethernet system. We have a fully (empty) functionnal ethernet driver |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
4 |
23 | 5 diff --git a/rathaxes/samples/lkm/CMakeLists.txt b/rathaxes/samples/lkm/CMakeLists.txt |
6 --- a/rathaxes/samples/lkm/CMakeLists.txt | |
7 +++ b/rathaxes/samples/lkm/CMakeLists.txt | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
8 @@ -1,6 +1,6 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
9 ADD_RATHAXES_SOURCES(lkm lkm.rtx |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
10 - RTI log.rti lkm.rti pci.rti ethernet.rti |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
11 - BLT log.blt lkm.blt pci.blt ethernet.blt) |
23 | 12 + RTI log.rti lkm.rti pci.rti socket.rti ethernet.rti e1000.rti |
13 + BLT log.blt lkm.blt pci.blt socket.blt ethernet.blt e1000.blt) | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
14 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
15 # We can't name lkm since it's already used as the target name to generate the |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
16 # source (with ADD_RATHAXES_SOURCES). |
23 | 17 diff --git a/rathaxes/samples/lkm/e1000.blt b/rathaxes/samples/lkm/e1000.blt |
18 new file mode 100644 | |
19 --- /dev/null | |
20 +++ b/rathaxes/samples/lkm/e1000.blt | |
21 @@ -0,0 +1,40 @@ | |
22 +with e1000, Ethernet, Socket, PCI, LKM, Log | |
23 +{ | |
24 + template type e1000::Context() | |
25 + { | |
26 + chunk LKM::includes() | |
27 + { | |
28 + /* | |
29 + * Force the generation of the structure in the "headers part, we | |
30 + * have to do this since we do not use the structure in this blt | |
31 + * (we hacked a bit and used it in ethernet.blt directly). | |
32 + */ | |
33 + typedef int ${e1000::Context}; /* CNorm __std__ workaround */ | |
34 + ${e1000::Context} force_declaration_in_includes; | |
35 + } | |
36 + | |
37 + chunk ::decl() | |
38 + { | |
39 + struct rtx_e1000_ctx | |
40 + { | |
41 + unsigned char *bar; | |
42 + }; | |
43 + } | |
44 + | |
45 + map | |
46 + { | |
47 + } | |
48 + } | |
49 + | |
50 + template sequence e1000::create() | |
51 + { | |
52 + chunk ::CALL | |
53 + { | |
54 + int bars = pci_select_bars(pdev, IORESOURCE_MEM); | |
55 + if (pci_enable_device_mem(pdev)) | |
56 + { | |
57 + ${Log::info("e1000::create: pci_enable_device_mem failed")}; | |
58 + } | |
59 + } | |
60 + } | |
61 +} | |
62 diff --git a/rathaxes/samples/lkm/e1000.rti b/rathaxes/samples/lkm/e1000.rti | |
63 new file mode 100644 | |
64 --- /dev/null | |
65 +++ b/rathaxes/samples/lkm/e1000.rti | |
66 @@ -0,0 +1,10 @@ | |
67 +interface e1000 : Socket, Ethernet, PCI, LKM | |
68 +{ | |
69 + provided type e1000::Context; | |
70 + | |
71 + /* Not sure if we need the argument */ | |
72 + provided sequence e1000::create() | |
73 + { | |
74 + provided chunk ::CALL; | |
75 + } | |
76 +} | |
77 diff --git a/rathaxes/samples/lkm/ethernet.blt b/rathaxes/samples/lkm/ethernet.blt | |
78 --- a/rathaxes/samples/lkm/ethernet.blt | |
79 +++ b/rathaxes/samples/lkm/ethernet.blt | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
80 @@ -1,4 +1,4 @@ |
23 | 81 -with Ethernet, PCI, LKM |
82 +with Ethernet, Socket, PCI, LKM | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
83 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
84 template type Ethernet::Device() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
85 { |
23 | 86 @@ -18,8 +18,11 @@ |
87 * I think it's useless to use the ${PCI::Device} "abstraction" | |
88 * here, since we are already in a Linux specific context here. | |
89 */ | |
90 - struct pci_dev *pci_dev; | |
91 - struct net_device *net_dev; | |
92 + struct pci_dev *pci_dev; | |
93 + struct net_device *net_dev; | |
94 + | |
95 + /* while waiting on issue #8 */ | |
96 + struct rtx_e1000_ctx hw_ctx; | |
97 }; | |
98 } | |
99 | |
100 @@ -51,6 +54,24 @@ | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
101 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
102 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
103 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
104 + template sequence Ethernet::send(Ethernet::Device dev, Socket::SKBuff skb) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
105 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
106 + chunk LKM::prototypes() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
107 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
108 + static int rtx_ethernet_xmit(struct sk_buff* skb, struct net_device *dev); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
109 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
110 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
111 + chunk LKM::code() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
112 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
113 + static int rtx_ethernet_xmit(struct sk_buff* skb, struct net_device *dev) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
114 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
115 + ${pointcut ::IMPLEMENTATION}; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
116 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
117 + return 0; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
118 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
119 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
120 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
121 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
122 template sequence Ethernet::close(Ethernet::Device dev) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
123 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
124 chunk LKM::prototypes() |
23 | 125 @@ -100,7 +121,7 @@ |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
126 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
127 .ndo_open = rtx_ethernet_open, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
128 .ndo_stop = rtx_ethernet_close, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
129 - .ndo_start_xmit = NULL, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
130 + .ndo_start_xmit = rtx_ethernet_xmit, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
131 }; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
132 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
133 |
23 | 134 diff --git a/rathaxes/samples/lkm/ethernet.rti b/rathaxes/samples/lkm/ethernet.rti |
135 --- a/rathaxes/samples/lkm/ethernet.rti | |
136 +++ b/rathaxes/samples/lkm/ethernet.rti | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
137 @@ -1,4 +1,4 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
138 -interface Ethernet : PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
139 +interface Ethernet : Socket, PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
140 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
141 provided type Ethernet::Device; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
142 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
143 @@ -10,6 +10,12 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
144 provided chunk LKM::code; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
145 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
146 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
147 + required sequence Ethernet::send(Ethernet::Device dev, Socket::SKBuff skb) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
148 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
149 + provided chunk LKM::prototypes; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
150 + provided chunk LKM::code; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
151 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
152 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
153 required sequence Ethernet::close(Ethernet::Device) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
154 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
155 provided chunk LKM::prototypes; |
23 | 156 diff --git a/rathaxes/samples/lkm/lkm.rtx b/rathaxes/samples/lkm/lkm.rtx |
157 --- a/rathaxes/samples/lkm/lkm.rtx | |
158 +++ b/rathaxes/samples/lkm/lkm.rtx | |
159 @@ -15,10 +15,16 @@ | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
160 Log::info("Got an interruption"); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
161 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
162 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
163 + Ethernet::send(Ethernet::Device dev, Socket::SKBuff skb) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
164 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
165 + Log::info("We have one packet to transmit!"); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
166 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
167 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
168 PCI::probe(PCI::Device dev) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
169 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
170 Log::info("Probe the device"); |
23 | 171 Ethernet::init(dev); |
172 + e1000::create(); | |
173 } | |
174 | |
175 PCI::remove(PCI::Device dev) | |
176 diff --git a/rathaxes/samples/lkm/socket.blt b/rathaxes/samples/lkm/socket.blt | |
177 new file mode 100644 | |
178 --- /dev/null | |
179 +++ b/rathaxes/samples/lkm/socket.blt | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
180 @@ -0,0 +1,27 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
181 +with Socket, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
182 +{ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
183 + template type Socket::SKBuff() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
184 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
185 + chunk LKM::includes() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
186 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
187 + #include <linux/sk_buff.h> |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
188 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
189 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
190 + chunk ::decl() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
191 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
192 + struct sk_buff; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
193 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
194 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
195 + chunk ::init() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
196 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
197 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
198 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
199 + map |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
200 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
201 + // some work may have to be done here in order |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
202 + // to access to some field of the sk_buff. |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
203 + // We should determine if all the sk_buff managment |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
204 + // can be abstracted from the user. |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
205 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
206 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
207 +} |
23 | 208 diff --git a/rathaxes/samples/lkm/socket.rti b/rathaxes/samples/lkm/socket.rti |
209 new file mode 100644 | |
210 --- /dev/null | |
211 +++ b/rathaxes/samples/lkm/socket.rti | |
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
212 @@ -0,0 +1,4 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
213 +interface Socket : LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
214 +{ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
215 + provided type Socket::SKBuff; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
216 +} |