Port l2packet library from googlecode