![dependabot[bot]](/assets/img/avatar_default.png) 9906fac59a
			
		
	
	9906fac59a
	
	
	
		
			
			Bumps [github.com/vishvananda/netlink](https://github.com/vishvananda/netlink) from 1.2.1-beta.2 to 1.3.0. - [Release notes](https://github.com/vishvananda/netlink/releases) - [Commits](https://github.com/vishvananda/netlink/compare/v1.2.1-beta.2...v1.3.0) --- updated-dependencies: - dependency-name: github.com/vishvananda/netlink dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			341 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			341 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package netlink
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| )
 | |
| 
 | |
| // Chain contains the attributes of a Chain
 | |
| type Chain struct {
 | |
| 	Parent uint32
 | |
| 	Chain  uint32
 | |
| }
 | |
| 
 | |
| func (c Chain) String() string {
 | |
| 	return fmt.Sprintf("{Parent: %d, Chain: %d}", c.Parent, c.Chain)
 | |
| }
 | |
| 
 | |
| func NewChain(parent uint32, chain uint32) Chain {
 | |
| 	return Chain{
 | |
| 		Parent: parent,
 | |
| 		Chain:  chain,
 | |
| 	}
 | |
| }
 |