OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.19.4
/
src
/
vendor
/
golang.org
/
x
/
net
/
route
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
address.go
9.85 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
binary.go
2.78 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
empty.s
279 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface.go
1.92 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface_announce.go
805 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface_classic.go
1.63 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface_freebsd.go
1.9 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface_multicast.go
864 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
interface_openbsd.go
2.13 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
message.go
1.58 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
route.go
4.27 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
route_classic.go
1.9 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
route_openbsd.go
1.7 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys.go
969 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_darwin.go
2.67 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_dragonfly.go
2.67 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_freebsd.go
4.58 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_netbsd.go
2.15 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_openbsd.go
2.05 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
syscall.go
446 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_darwin.go
1.96 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_dragonfly.go
1.95 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_freebsd_386.go
2.8 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_freebsd_amd64.go
2.7 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_freebsd_arm.go
2.7 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_freebsd_arm64.go
2.7 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_netbsd.go
1.89 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zsys_openbsd.go
1.95 KB
12/01/2022 06:13:01 PM
rw-r--r--
Editing: binary.go
Close
// 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. //go:build darwin || dragonfly || freebsd || netbsd || openbsd // +build darwin dragonfly freebsd netbsd openbsd package route // This file contains duplicates of encoding/binary package. // // This package is supposed to be used by the net package of standard // library. Therefore the package set used in the package must be the // same as net package. var ( littleEndian binaryLittleEndian bigEndian binaryBigEndian ) type binaryByteOrder interface { Uint16([]byte) uint16 Uint32([]byte) uint32 PutUint16([]byte, uint16) PutUint32([]byte, uint32) Uint64([]byte) uint64 } type binaryLittleEndian struct{} func (binaryLittleEndian) Uint16(b []byte) uint16 { _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 return uint16(b[0]) | uint16(b[1])<<8 } func (binaryLittleEndian) PutUint16(b []byte, v uint16) { _ = b[1] // early bounds check to guarantee safety of writes below b[0] = byte(v) b[1] = byte(v >> 8) } func (binaryLittleEndian) Uint32(b []byte) uint32 { _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 } func (binaryLittleEndian) PutUint32(b []byte, v uint32) { _ = b[3] // early bounds check to guarantee safety of writes below b[0] = byte(v) b[1] = byte(v >> 8) b[2] = byte(v >> 16) b[3] = byte(v >> 24) } func (binaryLittleEndian) Uint64(b []byte) uint64 { _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 } type binaryBigEndian struct{} func (binaryBigEndian) Uint16(b []byte) uint16 { _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 return uint16(b[1]) | uint16(b[0])<<8 } func (binaryBigEndian) PutUint16(b []byte, v uint16) { _ = b[1] // early bounds check to guarantee safety of writes below b[0] = byte(v >> 8) b[1] = byte(v) } func (binaryBigEndian) Uint32(b []byte) uint32 { _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 return uint32(b[3]) | uint32(b[2])<<8 | uint32(b[1])<<16 | uint32(b[0])<<24 } func (binaryBigEndian) PutUint32(b []byte, v uint32) { _ = b[3] // early bounds check to guarantee safety of writes below b[0] = byte(v >> 24) b[1] = byte(v >> 16) b[2] = byte(v >> 8) b[3] = byte(v) } func (binaryBigEndian) Uint64(b []byte) uint64 { _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 | uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56 }