Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C Ch Linux Perf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • Ch Linux Perf
  • Repository
Switch branch/tag
  • ch-linux-perf
  • net
  • sctp
  • socket.c
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