! \brief helper function: * \return next protocol, if the last one is reached return 0 * \note useful for cycling on the supported protocols */
| 185 | * \return next protocol, if the last one is reached return 0 |
| 186 | * \note useful for cycling on the supported protocols */ |
| 187 | static inline int next_proto(unsigned short proto) |
| 188 | { |
| 189 | for( proto++ ; proto<PROTO_LAST ; proto++ ) |
| 190 | if (protos[proto].id!=PROTO_NONE) |
| 191 | return proto; |
| 192 | return PROTO_NONE; |
| 193 | } |
| 194 | |
| 195 | |
| 196 |
no outgoing calls
no test coverage detected