Mercurial > archived > louis > epitech > mq > rathaxes
annotate rathaxes_start_to_implement_sk_buff_in_the_lkm.patch @ 20:ecf2a0e61fff
rathaxes: add sk_buff stuff
author | Thomas Sanchez <thomas.sanchz@gmail.com> |
---|---|
date | Sat, 07 Jan 2012 12:46:45 +0100 |
parents | |
children | 65523c345b40 |
rev | line source |
---|---|
20
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
1 # HG changeset patch |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
2 # Parent c979b95fd7fbc4c38849cf42a458a50d8d2d6901 |
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 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
5 diff -r c979b95fd7fb rathaxes/samples/lkm/CMakeLists.txt |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
6 --- a/rathaxes/samples/lkm/CMakeLists.txt Sat Jan 07 12:15:32 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
7 +++ b/rathaxes/samples/lkm/CMakeLists.txt Sat Jan 07 12:46:06 2012 +0100 |
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) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
12 + RTI log.rti lkm.rti pci.rti socket.rti ethernet.rti |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
13 + BLT log.blt lkm.blt pci.blt socket.blt ethernet.blt) |
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). |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
17 diff -r c979b95fd7fb rathaxes/samples/lkm/ethernet.blt |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
18 --- a/rathaxes/samples/lkm/ethernet.blt Sat Jan 07 12:15:32 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
19 +++ b/rathaxes/samples/lkm/ethernet.blt Sat Jan 07 12:46:06 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
20 @@ -1,4 +1,4 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
21 -with Ethernet, PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
22 +with Ethernet, Socket, PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
23 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
24 template type Ethernet::Device() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
25 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
26 @@ -51,6 +51,24 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
27 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
28 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
29 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
30 + 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
|
31 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
32 + chunk LKM::prototypes() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
33 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
34 + 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
|
35 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
36 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
37 + chunk LKM::code() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
38 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
39 + 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
|
40 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
41 + ${pointcut ::IMPLEMENTATION}; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
42 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
43 + return 0; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
44 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
45 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
46 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
47 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
48 template sequence Ethernet::close(Ethernet::Device dev) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
49 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
50 chunk LKM::prototypes() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
51 @@ -100,7 +118,7 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
52 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
53 .ndo_open = rtx_ethernet_open, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
54 .ndo_stop = rtx_ethernet_close, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
55 - .ndo_start_xmit = NULL, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
56 + .ndo_start_xmit = rtx_ethernet_xmit, |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
57 }; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
58 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
59 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
60 diff -r c979b95fd7fb rathaxes/samples/lkm/ethernet.rti |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
61 --- a/rathaxes/samples/lkm/ethernet.rti Sat Jan 07 12:15:32 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
62 +++ b/rathaxes/samples/lkm/ethernet.rti Sat Jan 07 12:46:06 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
63 @@ -1,4 +1,4 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
64 -interface Ethernet : PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
65 +interface Ethernet : Socket, PCI, LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
66 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
67 provided type Ethernet::Device; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
68 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
69 @@ -10,6 +10,12 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
70 provided chunk LKM::code; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
71 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
72 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
73 + 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
|
74 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
75 + provided chunk LKM::prototypes; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
76 + provided chunk LKM::code; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
77 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
78 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
79 required sequence Ethernet::close(Ethernet::Device) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
80 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
81 provided chunk LKM::prototypes; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
82 diff -r c979b95fd7fb rathaxes/samples/lkm/lkm.rtx |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
83 --- a/rathaxes/samples/lkm/lkm.rtx Sat Jan 07 12:15:32 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
84 +++ b/rathaxes/samples/lkm/lkm.rtx Sat Jan 07 12:46:06 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
85 @@ -15,6 +15,11 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
86 Log::info("Got an interruption"); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
87 } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
88 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
89 + Ethernet::send(Ethernet::Device dev, Socket::SKBuff skb) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
90 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
91 + Log::info("We have one packet to transmit!"); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
92 + } |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
93 + |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
94 PCI::probe(PCI::Device dev) |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
95 { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
96 Log::info("Probe the device"); |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
97 diff -r c979b95fd7fb rathaxes/samples/lkm/socket.blt |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
98 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
99 +++ b/rathaxes/samples/lkm/socket.blt Sat Jan 07 12:46:06 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
100 @@ -0,0 +1,27 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
101 +with Socket, LKM |
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 + template type Socket::SKBuff() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
104 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
105 + chunk LKM::includes() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
106 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
107 + #include <linux/sk_buff.h> |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
108 + } |
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 + chunk ::decl() |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
111 + { |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
112 + struct sk_buff; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
113 + } |
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 + chunk ::init() |
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 + } |
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 + map |
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 + // 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
|
122 + // to access to some field of the sk_buff. |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
123 + // We should determine if all the sk_buff managment |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
124 + // can be abstracted from the user. |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
125 + } |
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 +} |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
128 diff -r c979b95fd7fb rathaxes/samples/lkm/socket.rti |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
129 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
130 +++ b/rathaxes/samples/lkm/socket.rti Sat Jan 07 12:46:06 2012 +0100 |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
131 @@ -0,0 +1,4 @@ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
132 +interface Socket : LKM |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
133 +{ |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
134 + provided type Socket::SKBuff; |
ecf2a0e61fff
rathaxes: add sk_buff stuff
Thomas Sanchez <thomas.sanchz@gmail.com>
parents:
diff
changeset
|
135 +} |