<div dir="ltr"><div>2013/4/1 Razvan Deaconescu <span dir="ltr">&lt;<a href="mailto:razvan.deaconescu@cs.pub.ro" target="_blank">razvan.deaconescu@cs.pub.ro</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">Razvan Deaconescu &lt;<a href="mailto:razvan.deaconescu@cs.pub.ro">razvan.deaconescu@cs.pub.ro</a>&gt; writes:<br><br>&gt; [1] <a href="https://github.com/lisa-project/lisa-user/wiki/Meetings#monday-april-1-2013" target="_blank">https://github.com/lisa-project/lisa-user/wiki/Meetings#monday-april-1-2013</a><br>
<br></div>Am completat discuțiile și task-urile[1]. Dacă sunt completări, vă rog<br>să le faceți.<br><br>Așteptăm un e-mail cu split-ul task-urilor cel târziu miercuri.</blockquote></div><div><br></div>Salve,<div><br></div>
<div>Am incercat sa grupez cumva functiile din sw_api pentru a le implementa treptat oricare dintre noi:</div><div>1. vlan_add|del</div><div>2. vlan_rename, get_vlan_desc (operate in shared memory)</div><div>3. get_vdb, if_get_vlans, if_add|set|del_trunk_vlans (bitmap logic)</div>
<div>4. vif_add|del, if_set_port_vlan, get_vlan_interfaces</div>
<div>5. vlan_set|del_mac_static|dynamic, get_mac</div><div>6. igmp_enable|disable|get</div><div>7. mrouter_set|reset|get</div><div>8. set|get_age_time</div><div style>9. if_add|remove, get_if_list</div><div style>10. if_set_mode, if_get_type</div>
<div style>11. if_set|get_desc</div><div style>12. if_enable|disable</div><div style><br></div><div style>Vi se pare ok, sa facem issues asa?</div><div style><br></div><div style>In al doilea rand, referitor la functia de initializare a middleware-ului, eu cred ca ar trebui sa avem doua functii; una la fel pentru toate implementarile api-ului (care va initializa, de exemplu, shared memory, default vlans) si una care initializeaza variabilele si structurile etc. per implementare (de exemplu sockfd pentru syscall in implementarea cu modulul lisa). Pe scurt:</div>
<div style><br></div><div style>userspace/switch/sw_cli.h</div><div style>...</div><div style>int init()</div><div style>{</div><div style>    ...<br></div><div style>    mm_init();</div><div style>    add_default_vlans();</div>
<div style>    load_running_config();</div><div style>    ...</div><div style>}</div><div style>...</div><div style><br></div><div style><br></div><div style>userspace/switch/lisa.h<br></div><div style>...</div><div style>
int init_context()</div><div style>{</div><div style>...SW_SOCK_OPEN...</div><div style>}</div><div style><br></div><div style>void cleanup_context()</div><div style>{</div><div style>...SW_SOCK_CLOSE...</div><div style>}</div>
<div style>...</div><div style><br></div><div style><br></div><div style>Andreea</div></div>