sctp: delete the obsolete code for the host name address param
authorXin Long <lucien.xin@gmail.com>
Fri, 14 Apr 2023 21:21:15 +0000 (17:21 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2023 07:28:20 +0000 (08:28 +0100)
commitbd4b28189469492df2b962d737842c311ce2659c
treede699c367a4e96270d947af5bf695e5c4c2af619
parent9bf55bd4425bc944d23021cd818250e064f73227
sctp: delete the obsolete code for the host name address param

In the latest RFC9260, the Host Name Address param has been deprecated.
For INIT chunk:

  Note 3: An INIT chunk MUST NOT contain the Host Name Address
  parameter.  The receiver of an INIT chunk containing a Host Name
  Address parameter MUST send an ABORT chunk and MAY include an
  "Unresolvable Address" error cause.

For Supported Address Types:

  The value indicating the Host Name Address parameter MUST NOT be
  used when sending this parameter and MUST be ignored when receiving
  this parameter.

Currently Linux SCTP doesn't really support Host Name Address param,
but only saves some flag and print debug info, which actually won't
even be triggered due to the verification in sctp_verify_param().
This patch is to delete those dead code.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/sm_make_chunk.c
net/sctp/socket.c