blob: 7575f026965a49cc0a343d1191517029bd7deb83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright 2015 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 icmp
// An Extension represents an ICMP extension.
type Extension interface {
// Len returns the length of ICMP extension.
Len() int
// Marshal returns the binary enconding of ICMP extension.
Marshal() ([]byte, error)
}
const extensionVersion = 2
|