Guest User

Untitled

a guest
Mar 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. diff --git a/usr/src/uts/common/sys/overlay_target.h b/usr/src/uts/common/sys/overlay_target.h
  2. index cae193c..d09c776 100644
  3. --- a/usr/src/uts/common/sys/overlay_target.h
  4. +++ b/usr/src/uts/common/sys/overlay_target.h
  5. @@ -29,10 +29,21 @@
  6. extern "C" {
  7. #endif
  8.  
  9. +/*
  10. + * The answer we want at the end of the day. What are the target and source
  11. + * MAC addresses and VLAN ID (because the source VL2 MAC header may need to be
  12. + * rewritten if the UL3 is in a far-remote/routed network), target UL3 IP and
  13. + * target UL3 UDP port?
  14. + *
  15. + * If a supplied MAC address or vlan is 0, do NOT replace the existing VL2
  16. + * field with it.
  17. + */
  18. typedef struct overlay_target_point {
  19. uint8_t otp_mac[ETHERADDRL];
  20. - struct in6_addr otp_ip;
  21. + uint8_t otp_srcmac[ETHERADDRL];
  22. uint16_t otp_port;
  23. + uint16_t otp_vlan;
  24. + struct in6_addr otp_ip;
  25. } overlay_target_point_t;
  26.  
  27. #define OVERLAY_TARG_IOCTL (('o' << 24) | ('v' << 16) | ('t' << 8))
  28. @@ -159,12 +170,22 @@ typedef struct overlay_targ_lookup {
  29. uint64_t otl_vnetid;
  30. uint64_t otl_hdrsize;
  31. uint64_t otl_pktsize;
  32. + uint32_t otl_dcid; /* */
  33. uint8_t otl_srcaddr[ETHERADDRL];
  34. - uint8_t otl_dstaddr[ETHERADDRL];
  35. - uint32_t otl_dsttype;
  36. + boolean_t otl_l3req;
  37. + union {
  38. + struct in6_addr otlu_vl3addr;
  39. + struct {
  40. + uint8_t otlu_dstaddr[ETHERADDRL];
  41. + uint32_t oltu_dsttype;
  42. + } oltu_vl2addr;
  43. + } otl_dst;
  44. uint32_t otl_sap;
  45. int32_t otl_vlan;
  46. } overlay_targ_lookup_t;
  47. +#define otl_dstaddr otl_dst.otlu_vl2addr.otlu_dstaddr
  48. +#define otl_dsttype otl_dst.otlu_vl2addr.otlu_dsttype
  49. +#define otl_dstvl3addr otl_dst.otlu_vl3addr
  50.  
  51. typedef struct overlay_targ_resp {
  52. uint64_t otr_reqid;
Add Comment
Please, Sign In to add comment