Commit Graph

16 Commits

Author SHA1 Message Date
Ben Pfaff 9630e41005 Implement subnet mask matching in OpenFlow. 2008-08-18 14:26:50 -07:00
Ben Pfaff bf13819340 Make it easier for the compiler to optimize IP_IS_FRAGMENT. 2008-08-04 14:46:01 -07:00
Ben Pfaff cc57cfe85c packets: New macros for detecting IP fragments. 2008-07-18 13:42:38 -07:00
Ben Pfaff 841ae14767 packets: Distinguish max Ethernet length with and without VLAN header. 2008-07-18 13:42:37 -07:00
Ben Pfaff 6231bb85af packets: New IP header macros. 2008-07-18 13:42:37 -07:00
Ben Pfaff 49d9301d46 packets: Make Ethernet broadcast address available as a global object. 2008-07-18 13:42:37 -07:00
Ben Pfaff f81c152daf New function eth_addr_is_zero(). 2008-07-18 13:23:23 -07:00
Ben Pfaff 7225d06a78 Add utility functions for generating random numbers, and use where appropriate. 2008-07-01 10:51:47 -07:00
Justin Pettit f8704c4470 Mark the "vlan_eth_header" struct as packed, because it's getting padded on some architectures.
-- Reported by GigaFin --
2008-05-06 22:20:58 -07:00
Justin Pettit 95a73db4c2 Mark structures as packed that cause alignment problems on architectures like ARM. 2008-04-21 13:46:36 -07:00
Ben Pfaff 57ed58bca4 Get rid of ip.h, migrating its users to packets.h. 2008-04-01 09:52:59 -07:00
Ben Pfaff d927b51cb4 Get rid of mac.h, migrating its users to packets.h.
As a consequence, this fixes tests for multicast and local Ethernet
addresses, which formerly tested for the high bits but should
have tested for the low bits of the first octet.
2008-04-01 09:52:59 -07:00
casado 3f0201adb5 Update copyright on all non-GPL files 2008-03-27 20:12:18 -07:00
Ben Pfaff a8b4fd4096 Improve comment. 2008-03-27 17:50:33 -07:00
Ben Pfaff beddfa0e0e Add additional definitions for Ethernet addresses and headers and for VLAN headers. 2008-03-27 17:50:33 -07:00
Martin Casado 468e00132f Initial import 2008-03-04 13:12:53 -08:00