Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • uapi
  • linux
  • sctp.h
Find file BlameHistoryPermalink
  • Xin Long's avatar
    sctp: add SCTP_REMOTE_UDP_ENCAPS_PORT sockopt · 8dba2960
    Xin Long authored Oct 29, 2020
    
    
    This patch is to implement:
    
      rfc6951#section-6.1: Get or Set the Remote UDP Encapsulation Port Number
    
    with the param of the struct:
    
      struct sctp_udpencaps {
        sctp_assoc_t sue_assoc_id;
        struct sockaddr_storage sue_address;
        uint16_t sue_port;
      };
    
    the encap_port of sock, assoc or transport can be changed by users,
    which also means it allows the different transports of the same asoc
    to have different encap_port value.
    
    v1->v2:
      - no change.
    v2->v3:
      - fix the endian warning when setting values between encap_port and
        sue_port.
    
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    8dba2960
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7