gobgp | BGP implemented in the Go Programming Language | Natural Language Processing library
kandi X-RAY | gobgp Summary
kandi X-RAY | gobgp Summary
GoBGP is an open source BGP implementation designed from scratch for modern environment and implemented in a modern programming language, the Go Programming Language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gobgp
gobgp Key Features
gobgp Examples and Code Snippets
Community Discussions
Trending Discussions on gobgp
QUESTION
I can't find a way to layout structure to a byte array programming by GO. I'm programming extension for GoBGP service. I want to set community for the route via GoBGP API. More about BGP and communities.
My situation:
I'm trying to send the 32bit number. First, 16bits are interpreted as AS number, other 16bits- communities. API has an interface for uint32 to set all this data. I want to have a simple structure like:
...ANSWER
Answered 2019-Mar-16 at 21:12You can pass your structure to a uint32 variable using "unsafe" package:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gobgp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page