Mercurial > hg > freeDiameter
diff include/freeDiameter/libfreeDiameter.h @ 33:e6fcdf12b9a0
Added a lot of TODOs :)
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 29 Oct 2009 18:05:45 +0900 |
parents | 5ba91682f0bc |
children | 0e2b57789361 |
line wrap: on
line diff
--- a/include/freeDiameter/libfreeDiameter.h Thu Oct 29 10:23:12 2009 +0900 +++ b/include/freeDiameter/libfreeDiameter.h Thu Oct 29 18:05:45 2009 +0900 @@ -372,10 +372,16 @@ /* A l4 protocol name (TCP / SCTP) */ +#ifdef DISABLE_SCTP +#define IPPROTO_NAME( _proto ) \ + (((_proto) == IPPROTO_TCP) ? "TCP" : \ + "Unknown") +#else /* DISABLE_SCTP */ #define IPPROTO_NAME( _proto ) \ ( ((_proto) == IPPROTO_TCP) ? "TCP" : \ (((_proto) == IPPROTO_SCTP) ? "SCTP" : \ "Unknown")) +#endif /* DISABLE_SCTP */ /* The sockaddr length of a sSS structure */ #define sSSlen( _ss_ ) \