OpenBSD Journal

Ethernet bridge changes

Contributed by Dengue on from the Ethernet-bridge-changes dept.

Jason Wright writes "The Ethernet bridge code has gone through a large rework internally since 2.6 was released. This has led to much better reliability on RISC machines, more filtering capabilities (like the ability to block non-IP traffic and filter based on Ethernet MAC address), and greatly improved performance through clever optimization. All of the changes described are available in -current source code. A big thanks goes to Erik Fichtner for helping to test the last round of these changes. "

Jason goes on to say:

"As far as performance goes, I've removed several buffer copies, which means:

  • I consume less memory buffers
  • I operate on local variable copies of just the header information.
I also removed a copy that happened for each IP packet to be filtered and added a few optimizations for reusing a buffer instead of making a copy.

For security, we've added the ability to explicitly block all non-IP traffic going from one side of the bridge to another. We've also added the ability to filter based on source and destination ethernet mac address on a per interface basis."

(Comments are closed)

  1. By Anonymous Coward () on

    Very cool! I will have to upgrade my tree, I have
    been using it since 2.5 and been pretty happy.



Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]