Debian Codegraph @

eth-multiplexer/ChangeLog

raw
1 2009-04-18 Zheng Da <[email protected]>
2
3 * device_impl.c (ds_device_open): Create a virtual device if it
4 doesn't exist.
5
6 * netfs_impl.c (new_node): Test if the lnode structure exists
7 before setting its field.
8 (lookup): Copy the device name and don't create the virtual device.
9 (netfs_validate_stat): Set the status with the one of the underlying
10 node if the node has no lnode structure.
11 (netfs_attempt_chmod): chmod isn't supported if the node has no lnode
12 structure.
13 (netfs_node_norefs): Free the name in netnode.
14
15 * netfs_impl.h (net_node): Add a new field 'name'.
16
17 2009-04-18 Zheng Da <[email protected]>
18
19 * device_impl.c (ds_device_open): Check the mode for opening the file.
20
21 * multiplexer.c
22 (underlying_node_stat): New variable.
23 (main): Get the mapped time from Mach and set the time of the underlying
24 node of the translator.
25
26 * netfs_impl.c (lookup): Set the new created node with the same permission
27 as the underlying node of the translator and its time.
28 (netfs_check_open_permissions): Check the open permission of a node
29 in the same way.
30 (netfs_attempt_unlink): Change the return value.
31 (netfs_attempt_rename): Likewise.
32 (netfs_attempt_mkdir): Likewise.
33 (netfs_attempt_rmdir): Likewise.
34 (netfs_attempt_chown): Likewise.
35 (netfs_attempt_chauthor): Likewise.
36 (netfs_attempt_mksymlink): Likewise.
37 (netfs_attempt_mkdev): Likewise.
38 (netfs_set_translator): Likewise.
39 (netfs_attempt_chflags): Likewise.
40 (netfs_attempt_set_size): Likewise.
41 (netfs_attempt_link): Likewise.
42 (netfs_attempt_mkfile): Likewise.
43 (netfs_attempt_write): Likewise.
44 (netfs_attempt_chmod): Write the code to support the change of the mode.
45
46 * netfs_impl.h (multiplexer_maptime): Add the declaration.
47
48 2009-01-03 Zheng Da <[email protected]>
49
50 * device_impl.c (ds_device_write): Deallocate the out-of-line data.
51
52 2008-12-12 Zheng Da <[email protected]>
53
54 * multiplexer.c (main): Initialize the file status of the root node.
55
56 * netfs_impl.c (netfs_validate_stat): Set the file status of the node
57 with the one in the light node.
58
59 * vdev.h (dev_act_func): Define a new type.
60 (foreach_dev_do): Declare the function.
61
62 2008-11-18 Zheng Da <[email protected]>
63
64 * netfs_impl.c (netfs_get_dirents): Use foreach_dev_do.
65
66 * vdev.c (dev_head, dev_num): Hide in the file.
67 (dev_list_lock): New variable.
68 (get_dev_num): New function.
69 (lookup_dev_by_name): Use lock.
70 (foreach_dev_do): New function.
71 (remove_dead_port_from_dev): Use lock.
72 (broadcast_pack, broadcast_msg): Use foreach_dev_do.
73
74 * vdev.h (dev_num): Remove declaration.
75 (get_dev_num): Add declaration.
76
77 2008-11-13 Zheng Da <[email protected]>
78
79 * device_impl.c (ds_device_open): Use dev_port, dereference pi.
80
81 * util.h (print_backtrace): New macro.
82
83 * vdev.c (add_vdev): Set dev_port.
84
85 * vdev.h (vether_device): Add dev_port.
86
87 2008-11-12 Zheng Da <[email protected]>
88
89 * Makefile (SRCS): Updated.
90
91 * demuxer.c: New file.
92
93 * device_impl.c (ds_device_open): Use netfs_port_bucket.
94
95 * make-protid.c: Deleted.
96
97 2008-11-02 Zheng Da <[email protected]>
98
99 * Makefile (CFLAGS): Add a macro.
100 (SRCS): Add new C files.
101 (LCLHDRS): Add new H files.
102 (HURDLIBS): Change libraries.
103
104 * demuxer.c: New file.
105
106 * device_impl.c: New file.
107
108 * make-protid.c: New file.
109
110 * netfs_impl.c: New file.
111
112 * netfs_impl.h: New file.
113
114 * notify_impl.c: New file.
115
116 * multiplexer.c: Remove the trivfs variables. Move the implementation of
117 notify interface. Move the implementation of device interface.
118 (multiplexer_thread): New functions.
119 (main): Run the libnetfs translator.
120
121 * util.h (debug): Update.
122
123 * vdev.c (lookup_dev_by_name): Use strncmp.
124 (add_vdev): Change its interface.
125
126 2008-10-27 Zheng Da <[email protected]>
127
128 * README: Update.
129
130 * bpf_impl.c (destroy_filters): New function.
131
132 * multiplexer.c (nb_dev): Deleted.
133 (options): Remove the option '-v'.
134 (do_mach_notify_no_senders): Remove all port_info in the same way.
135 (ds_device_open): Create new devices if they don't exist, and decrease
136 their reference counts.
137 (ds_device_set_filter): Fix a bug.
138 (trivfs_goaway): Use has_vdev() to test.
139 (parse_opt): Remove the code of handling '-v'.
140 (main): Remove the code of creating virtual devices.
141
142 * util.h (ETH_P_IP): New macro.
143
144 * vdev.c (all_dev_close): Deleted.
145 (add_vdev): Link virtual device.
146 (destroy_vdev): New function.
147
148 * vdev.h (vether_device): Changed.
149
150
151 2008-10-03 Zheng Da <[email protected]>
152
153 * Makefile (CFLAGS): Remove the include paths from pfinet.
154
155 * util.h: Remove the line of including linux/if_ether.h.
156 (ETH_ALEN): New macro.
157 (ethhdr): New structure.
158
159 * vdev.c (ETH_HLEN): New macro.
160
161 * vdev.h: Remove the line of including linux/etherdevice.h and include util.h
162
163 2008-10-03 Zheng Da <[email protected]>
164
165 * multiplexer.c (parse_opt): Don't create the virtual devices in case 'v'.
166 (main): Create the virtual devices.
167
168 * README: Update.
169
170 2008-10-03 Zheng Da <[email protected]>
171
172 * multiplexer.c (ds_device_write): Don't call device_write when ether_port is NULL.
173 (ds_device_get_status): Call dev_getstat when ether_port is NULL.
174 (main): If device_file isn't specified, don't open the underlying device.
175
176 2008-09-26 Zheng Da <[email protected]>
177
178 * vdev.c (deliver_msg): Use non-block send.
179
180 2008-09-21 Zheng Da <[email protected]>
181
182 * README: Update.
183
184 2008-09-02 Zheng Da <[email protected]>
185
186 * ethernet.c (ether_filter): Use the original NPF filter.
187
188 2008-9-01 Zheng Da <[email protected]>
189
190 * multiplexer.c (ds_device_write): Reverse the calling of functions.
191 (ds_device_get_status): Call device_get_status.
192
193 * vdev.c (broadcast_pack): Change its function prototype. Broadcast to
194 all other interface.
195 (deliver_pack): Don't set the message header.
196 (broadcast_msg): Save the original message header and restore it.
197 (deliver_msg): Deallocate the port if mach_msg fails.
198
199 * vdev.h (broadcast_pack): Change its function prototype.
200
201 2008-8-29 Zheng Da <[email protected]>
202
203 * ethernet.c (ethernet_open): Use error instead of assert_perror.
204
205 * multiplexer.c (ds_device_set_filter): Return the error.
206
207 2008-8-28 Zheng Da <[email protected]>
208
209 * ethernet.c (NET_FLAGS): New macro.
210
211 2008-8-22 Zheng Da <[email protected]>
212
213 * README: Update.
214
215 * Makefile: Remove list.h.
216
217 * multiplexer.c (do_mach_notify_no_senders): Get vether_device object
218 with ports_lookup_port().
219 (ds_xxx_device_set_status): Likewise.
220 (ds_xxx_device_get_status): Likewise.
221 (ds_xxx_device_set_filter): Likewise.
222 (ds_device_write): Likewise.
223 (ds_device_write_inband): Likewise.
224 (ds_device_read): Likewise.
225 (ds_device_read_inband): Likewise.
226 (ds_device_map): Likewise.
227 (ds_device_set_status): Likewise.
228 (ds_device_get_status): Likewise.
229 (ds_device_set_filter): Likewise.
230 (do_mach_notify_dead_name): Deallocate the port.
231 (ds_device_open): Get the name directly from the vether_device object.
232 (ds_device_close): Return 0 immediately.
233
234 * vdev.c (dev_head): Point to the head of the device list.
235 (print_eth_addr): Removed.
236 (lookup_dev_by_devport): Likewise.
237 (lookup_dev_by_name): Use the for loop to replace list_for_each_entry.
238 (remove_dead_port_from_dev): Likewise.
239 (all_dev_close): Likewise.
240 (broadcast_pack): Likewise.
241 (broadcast_msg): Likewise.
242 (add_vdev): Create the vether_device object with ports_create_port.
243 (has_vdev): Test if the device list is empty.
244
245 * vdev.h: Don't include list.h.
246 (vether_device): Include the port_info object instead of its pointer.
247 (next): Replace dev_list.
248
249 * list.h: Removed.
250
251 2008-8-20 Zheng Da <[email protected]>
252
253 * README: Update.
254
255 * multiplexer.c (options): Update.
256
257 2008-8-20 Zheng Da <[email protected]>
258
259 * multiplexer.c (main): Test device_file before using it.
260
261 2008-8-20 Zheng Da <[email protected]>
262
263 * multiplexer.c (device_file): Rename a variable.
264 (main): Use device_file directly.
265
266 2008-8-19 Zheng Da <[email protected]>
267
268 * multiplexer.c (main): Generate the device file name, and use it
269 to open the device.
270
271 2008-8-18 Zheng Da <[email protected]>
272
273 * README: New file.
274
275 * multiplexer.c (options): Change the meaning of '-v' option.
276 (parse_opt): Change the way of handling '-v' option.
277
278 * vdev.c (has_vdev): New function.
279
280 * vdev.h (has_vdev): New declaration.
281
282 2008-8-17 Zheng Da <[email protected]>
283
284 * ethernet.c (ethernet_open): Use a hard coded string for the device name.
285
286 * multiplexer.c: Remove the option '-M'.
287 (parse_opt): Remove the code of handling '-M' option.
288 (main): Get the master device port from the device file.
289
290 2008-8-14 Zheng Da <[email protected]>
291
292 * ChangeLog: New file.
293
294 * multiplexer.c (vdev_portclass, other_portclass):
295 New variables.
296 (do_mach_notify_no_senders): Mark the device unused when there are no
297 senders for the device.
298 (do_mach_notify_dead_name): Return 0.
299 (ds_device_open): Mark the device used.
300 (ds_device_close): Remove the code of decreasing the count of the device.
301 (trivfs_goaway): Only test if all devices aren't used, and delete the code
302 of closing the device.
303 (parse_opt): Use vdev_portclass to create the virtual device.
304 (main): Create vdev_portclass and other_portclass, open the ethernet
305 device with other_portclass and create notify_pi with other_portclass.
306
307 * vdev.c (all_dev_close): Change the way of testing if all devices are
308 closed.
309
310 * vdev.h (vether_device): Replace count field with used.
311
312 2008-8-13 Zheng Da <[email protected]>
313
314 * bpf_impl.c: New file.
315
316 * bpf_impl.h: New file.
317
318 * dev_stat.c: New file.
319
320 * ethernet.c: New file.
321
322 * ethernet.h: New file.
323
324 * list.h: New file.
325
326 * Makefile: New file.
327
328 * multiplexer.c: New file.
329
330 * queue.c: New file.
331
332 * queue.h: New file.
333
334 * test.c: New file.
335
336 * util.h: New file.
337
338 * vdev.c: New file.
339
340 * vdev.h: New file.
341