X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow.h;h=b77cd701137bb3fac0413007fa23475a2c718b13;hb=bacd209169cc3a6e71b69109212670838e236f6f;hp=c8477aab3ad7944e6a759e93bc252a10bfc001f6;hpb=0254ae23d4a3ca6d9287ac0b6bd07a17a6dc448d;p=openvswitch diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index c8477aab..b77cd701 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -37,12 +37,6 @@ #define OFP_ASSERT BOOST_STATIC_ASSERT #endif /* __cplusplus */ -#ifndef SWIG -#define OFP_PACKED __attribute__((packed)) -#else -#define OFP_PACKED /* SWIG doesn't understand __attribute. */ -#endif - /* Version number: * Non-experimental versions released: 0x01 * Experimental versions released: 0x81 -- 0x99 @@ -141,10 +135,10 @@ struct ofp_hello { enum ofp_config_flags { /* Handling of IP fragments. */ - OFPC_FRAG_NORMAL = 0 << 1, /* No special handling for fragments. */ - OFPC_FRAG_DROP = 1 << 1, /* Drop fragments. */ - OFPC_FRAG_REASM = 2 << 1, /* Reassemble (only if OFPC_IP_REASM set). */ - OFPC_FRAG_MASK = 3 << 1 + OFPC_FRAG_NORMAL = 0, /* No special handling for fragments. */ + OFPC_FRAG_DROP = 1, /* Drop fragments. */ + OFPC_FRAG_REASM = 2, /* Reassemble (only if OFPC_IP_REASM set). */ + OFPC_FRAG_MASK = 3 }; /* Switch configuration. */