X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow.h;h=5f1dd609f2002d8c4a1a8b97c200f24c776df009;hb=c19e653509deb3f1002c4ed99714e16549ec74e9;hp=f84fd0202e245160e71a9f9ce29817539f3ffc89;hpb=c1c9c9c4b636ab2acf2f75024c282a9a497ca9a9;p=openvswitch diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index f84fd020..5f1dd609 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -19,11 +19,7 @@ #ifndef OPENFLOW_OPENFLOW_H #define OPENFLOW_OPENFLOW_H 1 -#ifdef __KERNEL__ -#include -#else #include -#endif #ifdef SWIG #define OFP_ASSERT(EXPR) /* SWIG can't handle OFP_ASSERT. */ @@ -216,7 +212,7 @@ enum ofp_port_features { struct ofp_phy_port { uint16_t port_no; uint8_t hw_addr[OFP_ETH_ALEN]; - uint8_t name[OFP_MAX_PORT_NAME_LEN]; /* Null-terminated */ + char name[OFP_MAX_PORT_NAME_LEN]; /* Null-terminated */ uint32_t config; /* Bitmap of OFPPC_* flags. */ uint32_t state; /* Bitmap of OFPPS_* flags. */