<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 29, 2011, at 3:53 PM, Tom Tasche wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br>Some colleagues and I are working on a networking related software<br> for our diploma thesis.<br>Basically we want to connect Cisco's PacketTracer to a real network<br> (that's actually not our diploma thesis, but it's one part of it)<br> and therefore need to bridge a physical interface <br> for receiving and sending ethernet packets with different mac addresses.<br><br>We have tried to use the socket library on linux,<br> but it doesn't work on every NIC to fake the MAC address.<br>Now we want to extract that code out of VirtualBox. <br>However, we couldn't find that pieces of code<br> in VirtualBox's 270MB of awesome source sauce.<br>Would you guys be so kind and help us?<br></div></blockquote><div><br></div><div>sure, no problem. </div><div><br></div><div>You'll find the core network components here:</div></div>src/VBox/Devices/Network/SrvIntNetR0.cpp  (the switch/hub)<div>src/VBox/HostDrivers/VBoxNetFlt/ (the network code interfacing the kernel)<br></div><div><br></div><div>Standalone programs using the network components:<br><div>src/VBox/Devices/Network/testcase/tstIntNet-1.cpp (check out the -S option)</div><div>src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp (another example)</div><div><br></div><div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>-- <br><br>Kind regards / Mit freundlichen Gruessen / Vennlig hilsen,<br> bird<br><br>--<br><br>ORACLE Deutschland B.V. & Co. KG  Knut St. Osmundsen<br>Werkstrasse 24                    Senior Staff Engineer, VirtualBox<br>71384 Weinstadt, Germany          <a href="mailto:bird@sun.com">mailto:bird@sun.com</a><br><br>Hauptverwaltung: Riesstr. 25, D-80992 Muenchen<br>Registergericht: Amtsgericht Muenchen, HRA 95603<br><br>Komplementaerin: ORACLE Deutschland Verwaltung B.V.<br>Rijnzathe 6, 3454PV De Meern, Niederlande<br>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>Geschaeftsfuehrer: J. Kunz, M. van de Molen, A. van der Ven</div></div></div>
</div>
<br></div></div></body></html>