 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>
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2016 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 route
 | |
| 
 | |
| import "syscall"
 | |
| 
 | |
| func (typ RIBType) parseable() bool { return true }
 | |
| 
 | |
| // RouteMetrics represents route metrics.
 | |
| type RouteMetrics struct {
 | |
| 	PathMTU int // path maximum transmission unit
 | |
| }
 | |
| 
 | |
| // SysType implements the SysType method of Sys interface.
 | |
| func (rmx *RouteMetrics) SysType() SysType { return SysMetrics }
 | |
| 
 | |
| // Sys implements the Sys method of Message interface.
 | |
| func (m *RouteMessage) Sys() []Sys {
 | |
| 	return []Sys{
 | |
| 		&RouteMetrics{
 | |
| 			PathMTU: int(nativeEndian.Uint64(m.raw[m.extOff+8 : m.extOff+16])),
 | |
| 		},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // RouteMetrics represents route metrics.
 | |
| type InterfaceMetrics struct {
 | |
| 	Type int // interface type
 | |
| 	MTU  int // maximum transmission unit
 | |
| }
 | |
| 
 | |
| // SysType implements the SysType method of Sys interface.
 | |
| func (imx *InterfaceMetrics) SysType() SysType { return SysMetrics }
 | |
| 
 | |
| // Sys implements the Sys method of Message interface.
 | |
| func (m *InterfaceMessage) Sys() []Sys {
 | |
| 	return []Sys{
 | |
| 		&InterfaceMetrics{
 | |
| 			Type: int(m.raw[m.extOff]),
 | |
| 			MTU:  int(nativeEndian.Uint32(m.raw[m.extOff+8 : m.extOff+12])),
 | |
| 		},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func probeRoutingStack() (int, map[int]*wireFormat) {
 | |
| 	rtm := &wireFormat{extOff: 40, bodyOff: sizeofRtMsghdrNetBSD7}
 | |
| 	rtm.parse = rtm.parseRouteMessage
 | |
| 	ifm := &wireFormat{extOff: 16, bodyOff: sizeofIfMsghdrNetBSD7}
 | |
| 	ifm.parse = ifm.parseInterfaceMessage
 | |
| 	ifam := &wireFormat{extOff: sizeofIfaMsghdrNetBSD7, bodyOff: sizeofIfaMsghdrNetBSD7}
 | |
| 	ifam.parse = ifam.parseInterfaceAddrMessage
 | |
| 	ifanm := &wireFormat{extOff: sizeofIfAnnouncemsghdrNetBSD7, bodyOff: sizeofIfAnnouncemsghdrNetBSD7}
 | |
| 	ifanm.parse = ifanm.parseInterfaceAnnounceMessage
 | |
| 	// NetBSD 6 and above kernels require 64-bit aligned access to
 | |
| 	// routing facilities.
 | |
| 	return 8, map[int]*wireFormat{
 | |
| 		syscall.RTM_ADD:        rtm,
 | |
| 		syscall.RTM_DELETE:     rtm,
 | |
| 		syscall.RTM_CHANGE:     rtm,
 | |
| 		syscall.RTM_GET:        rtm,
 | |
| 		syscall.RTM_LOSING:     rtm,
 | |
| 		syscall.RTM_REDIRECT:   rtm,
 | |
| 		syscall.RTM_MISS:       rtm,
 | |
| 		syscall.RTM_LOCK:       rtm,
 | |
| 		syscall.RTM_RESOLVE:    rtm,
 | |
| 		syscall.RTM_NEWADDR:    ifam,
 | |
| 		syscall.RTM_DELADDR:    ifam,
 | |
| 		syscall.RTM_IFANNOUNCE: ifanm,
 | |
| 		syscall.RTM_IFINFO:     ifm,
 | |
| 	}
 | |
| }
 |