X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_types_api.h;h=a80158052b8e8c123f57c56371a26a36fc89f3c8;hb=a90b26c1ee5bc4410c2753b6683a2e50e275daf6;hp=4c79bf138e33ce21b79cac48410af97575b6759c;hpb=50f0ac0f097e5495da1f2b1816106e3d420ff34b;p=vpp.git diff --git a/src/vnet/ip/ip_types_api.h b/src/vnet/ip/ip_types_api.h index 4c79bf138e3..a80158052b8 100644 --- a/src/vnet/ip/ip_types_api.h +++ b/src/vnet/ip/ip_types_api.h @@ -23,24 +23,19 @@ #include #include #include +#include +#include /** - * Forward declarations so we need not #include the API definitions here - */ -typedef u8 vl_api_ip6_address_t[16]; -typedef u8 vl_api_ip4_address_t[4]; -struct _vl_api_address; -struct _vl_api_prefix; -struct _vl_api_mprefix; - -/** - * These enum decode/encodes use 'int' as the type for the enum becuase + * These enum decode/encodes use 'int' as the type for the enum because * one cannot forward declare an enum */ extern int ip_address_family_decode (int _af, ip_address_family_t * out); extern int ip_address_family_encode (ip_address_family_t af); extern int ip_proto_decode (int _af, ip_protocol_t * out); extern int ip_proto_encode (ip_protocol_t af); +extern ip_dscp_t ip_dscp_decode (u8 _dscp); +extern u8 ip_dscp_encode (ip_dscp_t dscp); /** * Decode/Encode for struct/union types