Method
AddDropIPv6SetRule
(setName string, userData []byte)
Source from the content-addressed store, hash-verified
| 246 | } |
| 247 | |
| 248 | func (this *Chain) AddDropIPv6SetRule(setName string, userData []byte) (*Rule, error) { |
| 249 | return this.AddRule(&RuleOptions{ |
| 250 | Exprs: []expr.Any{ |
| 251 | &expr.Payload{ |
| 252 | DestRegister: 1, |
| 253 | Base: expr.PayloadBaseNetworkHeader, |
| 254 | Offset: 8, |
| 255 | Len: 16, |
| 256 | }, |
| 257 | &expr.Lookup{ |
| 258 | SourceRegister: 1, |
| 259 | SetName: setName, |
| 260 | }, |
| 261 | &expr.Verdict{ |
| 262 | Kind: expr.VerdictDrop, |
| 263 | }, |
| 264 | }, |
| 265 | UserData: userData, |
| 266 | }) |
| 267 | } |
| 268 | |
| 269 | func (this *Chain) AddRejectIPv4SetRule(setName string, userData []byte) (*Rule, error) { |
| 270 | return this.AddRule(&RuleOptions{ |
Callers
nothing calls this directly
Tested by
no test coverage detected