Commit Graph

18 Commits

Author SHA1 Message Date
Ben Pfaff 82b05cb81e Random Ethernet addresses should be private and should not be multicast. 2008-10-06 09:44:45 -07:00
Justin Pettit 06e22ff0fe Modify VLAN actions to support setting both VID and priority.
Stripping VLANs is now done through the OFPAT_STRIP_VLAN action (i.e., you
don't specify a magic value in the generirc VLAN action).  Also, it is now
possible to modify the priority bits associated with the VLAN tag through
the OFPAT_SET_VLAN_PCP action.  The OFPAT_SET_DL_VLAN has been renamed to
OFPAT_SET_VLAN_VID.
2008-09-25 15:00:38 -07:00
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