Skip to contentSkip to conversation

SCTP_HMAC_NONE config variable is unused

DISCUSSION Robert P. J. Day 2 participants 3 messages Jul 17, 2008 SCTP protocol

lore
Share & tools
lore
#0 lore raw

that config variable is defined but unreferenced anywhere in the
tree.

rday
--

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
====================================

#1 lore raw
Quoted 4 lines · Robert P. J. Day

that config variable is defined but unreferenced anywhere in the
tree.

rday

Yep. It could probably be use used here:

include/net/sctp/constants.h:

#if defined (CONFIG_SCTP_HMAC_MD5)
#define SCTP_COOKIE_HMAC_ALG "hmac(md5)"
#elif defined (CONFIG_SCTP_HMAC_SHA1)
#define SCTP_COOKIE_HMAC_ALG "hmac(sha1)"
#else
#define SCTP_COOKIE_HMAC_ALG NULL
#endif

the final '#else' can be:

#elif defined (CONFIG_SCTP_HMAC_NONE)

An alternative would be to change the 'choice' in Kconfig to something else that allows us to have a 'none' selection.

Is this really a problem?

-vlad

#2 lore raw
In reply to Robert P. J. Day
Quoted 21 lines · Vlad Yasevich
Quoted 4 lines · Robert P. J. Day

that config variable is defined but unreferenced anywhere in the
tree.

rday

Yep. It could probably be use used here:

include/net/sctp/constants.h:

#if defined (CONFIG_SCTP_HMAC_MD5)
#define SCTP_COOKIE_HMAC_ALG "hmac(md5)"
#elif defined (CONFIG_SCTP_HMAC_SHA1)
#define SCTP_COOKIE_HMAC_ALG "hmac(sha1)"
#else
#define SCTP_COOKIE_HMAC_ALG NULL
#endif

the final '#else' can be:

Quoted 7 lines

#elif defined (CONFIG_SCTP_HMAC_NONE)

An alternative would be to change the 'choice' in Kconfig to something else that allows us to have a 'none' selection.

Is this really a problem?

no, sorry, i just didn't look closely enough to note that it was a default selection. just ignore that last noise.

rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
====================================