 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2013 The Go Authors. All rights reserved.
 | |
| // Use of this source code is governed by a BSD-style
 | |
| // license that can be found in the LICENSE file.
 | |
| 
 | |
| package ipv6
 | |
| 
 | |
| import (
 | |
| 	"net"
 | |
| 	"syscall"
 | |
| 
 | |
| 	"golang.org/x/net/internal/iana"
 | |
| 	"golang.org/x/net/internal/socket"
 | |
| 
 | |
| 	"golang.org/x/sys/windows"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	sizeofSockaddrInet6 = 0x1c
 | |
| 
 | |
| 	sizeofIPv6Mreq     = 0x14
 | |
| 	sizeofIPv6Mtuinfo  = 0x20
 | |
| 	sizeofICMPv6Filter = 0
 | |
| )
 | |
| 
 | |
| type sockaddrInet6 struct {
 | |
| 	Family   uint16
 | |
| 	Port     uint16
 | |
| 	Flowinfo uint32
 | |
| 	Addr     [16]byte /* in6_addr */
 | |
| 	Scope_id uint32
 | |
| }
 | |
| 
 | |
| type ipv6Mreq struct {
 | |
| 	Multiaddr [16]byte /* in6_addr */
 | |
| 	Interface uint32
 | |
| }
 | |
| 
 | |
| type ipv6Mtuinfo struct {
 | |
| 	Addr sockaddrInet6
 | |
| 	Mtu  uint32
 | |
| }
 | |
| 
 | |
| type icmpv6Filter struct {
 | |
| 	// TODO(mikio): implement this
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	ctlOpts = [ctlMax]ctlOpt{}
 | |
| 
 | |
| 	sockOpts = map[int]*sockOpt{
 | |
| 		ssoHopLimit:           {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_UNICAST_HOPS, Len: 4}},
 | |
| 		ssoMulticastInterface: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_MULTICAST_IF, Len: 4}},
 | |
| 		ssoMulticastHopLimit:  {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_MULTICAST_HOPS, Len: 4}},
 | |
| 		ssoMulticastLoopback:  {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_MULTICAST_LOOP, Len: 4}},
 | |
| 		ssoJoinGroup:          {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_JOIN_GROUP, Len: sizeofIPv6Mreq}, typ: ssoTypeIPMreq},
 | |
| 		ssoLeaveGroup:         {Option: socket.Option{Level: iana.ProtocolIPv6, Name: windows.IPV6_LEAVE_GROUP, Len: sizeofIPv6Mreq}, typ: ssoTypeIPMreq},
 | |
| 	}
 | |
| )
 | |
| 
 | |
| func (sa *sockaddrInet6) setSockaddr(ip net.IP, i int) {
 | |
| 	sa.Family = syscall.AF_INET6
 | |
| 	copy(sa.Addr[:], ip)
 | |
| 	sa.Scope_id = uint32(i)
 | |
| }
 | |
| 
 | |
| func (mreq *ipv6Mreq) setIfindex(i int) {
 | |
| 	mreq.Interface = uint32(i)
 | |
| }
 |