FOSSLC is a non-profit organization that specializes in technology and know-how to record conferences with excellent quality. Click on the icons below to view great videos from communities we are actively involved with:

 

Porting dummynet to Linux and Windows

in BSDCan, BSDCan2010, Programming, BSD

Location

Ottawa, ON
Canada
45° 24' 41.6592" N, 75° 41' 53.4984" W

Porting userland code to different platforms is a common practice. Porting kernel code is much less common for many reasons, including the absence of common APIs, a fact which often prevents code reuse and suggest complete rewrites. There are however areas (including pieces of the network stack) where such differences are less important and porting becomes attractive. Furthermore, writing code with portability in mind also helps running kernel code in user-space, which is a huge help in testing and performance analysis. In this talk we will discuss our experience in porting the ipfw and dummynet subsystems to Linux and Windows. We will describe how we dealt with the OS-specific features in the subsystems we used: packet representation, locking, timers and other OS services, compilers and build environments. The experience helped us a lot in the development of the new (ipfw3) version of these two subsystems, which runs almost the same code on all three platforms.

Minutes: 
43
Event: 
BSDCan2010
Speaker: 
Luigi Rizzo
Filmed: 
14.05.2010