Print this page
Interpret sl3a_uport == 0 in SVP_R_VL3_ACK to indicate the VL3 IP is a
next-hop router.

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/varpd/svp/common/libvarpd_svp_prot.h
          +++ new/usr/src/lib/varpd/svp/common/libvarpd_svp_prot.h
↓ open down ↓ 66 lines elided ↑ open up ↑
  67   67  
  68   68  typedef enum svp_status {
  69   69          SVP_S_OK        = 0x00, /* Everything OK */
  70   70          SVP_S_FATAL     = 0x01, /* Fatal error, close connection */
  71   71          SVP_S_NOTFOUND  = 0x02, /* Entry not found */
  72   72          SVP_S_BADL3TYPE = 0x03, /* Unknown svp_vl3_type_t */
  73   73          SVP_S_BADBULK   = 0x04  /* Unknown svp_bulk_type_t */
  74   74  } svp_status_t;
  75   75  
  76   76  /*
  77      - * A client issues the SVP_R_VL2_REQ whenever it needs to perform a VLS->UL3
       77 + * A client issues the SVP_R_VL2_REQ whenever it needs to perform a VL2->UL3
  78   78   * lookup. Requests have the following structure:
  79   79   */
  80   80  typedef struct svp_vl2_req {
  81   81          uint8_t         sl2r_mac[ETHERADDRL];
  82   82          uint8_t         sl2r_pad[2];
  83   83          uint32_t        sl2r_vnetid;
  84   84  } svp_vl2_req_t;
  85   85  
  86   86  /*
  87   87   * This is the message a server uses to reply to the SVP_R_VL2_REQ.  If the
↓ open down ↓ 158 lines elided ↑ open up ↑
 246  246          uint16_t        srr_pad;        /* Zero on xmit, ignore on receipt. */
 247  247          uint8_t         srr_srcip[16];  /* VL3 Source IP. */
 248  248          uint8_t         srr_dstip[16];  /* VL3 Destination IP. */
 249  249  } svp_route_req_t;
 250  250  
 251  251  /*
 252  252   * The far-remote Triton Data Center will answer with the requisite information
 253  253   * to send overlay packets to the appropriate far-remote CNs.
 254  254   */
 255  255  typedef struct svp_route_ack {
      256 +        uint32_t        sra_status;     /* Status. */
 256  257          uint32_t        sra_dcid;       /* Far-remote Data Center ID. */
 257  258          uint32_t        sra_vnetid;     /* Far-remote vnet ID. */
 258  259          uint16_t        sra_vlan;       /* Far-remote VLAN ID. */
 259  260          uint16_t        sra_port;       /* Destination UL3 port. */
 260  261          uint8_t         sra_ip[16];     /* Destination UL3 address. */
 261  262          uint8_t sra_srcmac[ETHERADDRL]; /* Far-remote VL2 source. */
 262  263          uint8_t sra_dstmac[ETHERADDRL]; /* Far-remote VL2 dest. */
 263  264          uint8_t         sra_src_pfx;    /* Far-remote VL3 source prefix */
 264  265          uint8_t         sra_dst_pfx;    /* Far-remote VL3 dest. prefix */
 265  266  } svp_route_ack_t;
 266  267  
 267  268  #ifdef __cplusplus
 268  269  }
 269  270  #endif
 270  271  
 271  272  #endif /* _LIBVARPD_SVP_PROT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX