MCPcopy Create free account

hub / github.com/benjojo/sping / functions

Functions137 in github.com/benjojo/sping

↓ 15 callersMethodClose
Close closes the endpoint.
icmp/endpoint.go:73
↓ 9 callersMethodMarshal
Marshal returns the binary encoding of ICMP extension. The provided proto must be either the ICMPv4 or ICMPv6 protocol number.
icmp/extension.go:24
↓ 9 callersMethodok
()
icmp/endpoint.go:26
↓ 7 callersMethodLen
Len returns the length of ICMP extension. The provided proto must be either the ICMPv4 or ICMPv6 protocol number.
icmp/extension.go:19
↓ 6 callersMethodWriteTo
WriteTo writes the ICMP message b to dst. The provided dst must be net.UDPAddr when c is a non-privileged datagram-oriented ICMP endpoint. Otherwise i
icmp/endpoint.go:65
↓ 6 callersFunctiondumpExtensions
(gotExts, wantExts []icmp.Extension)
icmp/multipart_test.go:386
↓ 5 callersFunctionmultipartMessageBodyDataLen
multipartMessageBodyDataLen takes b as an original datagram and exts as extensions, and returns a required length for message body and a required leng
icmp/multipart.go:11
↓ 5 callersFunctiontimeNowCorrected
()
timecorrection.go:23
↓ 4 callersMethodReadFrom
ReadFrom reads an ICMP message from the connection.
icmp/endpoint.go:47
↓ 4 callersMethodmarshal
(proto int, b []byte)
icmp/mpls.go:43
↓ 4 callersFunctionmarshalMultipartMessageBody
marshalMultipartMessageBody takes data as an original datagram and exts as extesnsions, and returns a binary encoding of message body. It can be used
icmp/multipart.go:59
↓ 4 callersFunctionparseMultipartMessageBody
parseMultipartMessageBody parses b as either a non-multipart message body or a multipart message body.
icmp/multipart.go:106
↓ 4 callersFunctionvalidExtensions
(typ Type, exts []Extension)
icmp/extension.go:116
↓ 3 callersMethodProtocol
()
icmp/message.go:57
↓ 3 callersMethodattrsAndLen
(proto int)
icmp/interface.go:40
↓ 3 callersFunctionchecksum
(b []byte)
icmp/message.go:41
↓ 3 callersFunctiondoDiag
(dt diagTest, seq int)
icmp/diag_test.go:147
↓ 3 callersFunctiondumbLastAckSearchForID
(targetID uint8, LastAcks [32]pingInfo)
main.go:408
↓ 3 callersFunctionparseExtensions
parseExtensions parses b as a list of ICMP extensions. The length attribute l must be the length attribute field in received icmp messages. It will r
icmp/extension.go:48
↓ 3 callersFunctionvalidExtensionHeader
(b []byte)
icmp/extension.go:29
↓ 2 callersMethodLen
Len implements the Len method of Extension interface.
icmp/interface.go:251
↓ 2 callersMethodLen
Len implements the Len method of Extension interface.
icmp/mpls.go:30
↓ 2 callersMethodMarshal
Marshal returns the binary encoding of the ICMP message m. For an ICMPv4 message, the returned message always contains the calculated checksum field.
icmp/message.go:77
↓ 2 callersMethodSetReadDeadline
SetReadDeadline sets the read deadline associated with the endpoint.
icmp/endpoint.go:99
↓ 2 callersFunctiongetStats
(timeRX time.Time, rx pingStruct, ses *session)
main.go:357
↓ 2 callersFunctiongetTimeOffset
()
timecorrection.go:11
↓ 2 callersMethodnameLen
()
icmp/interface.go:32
↓ 2 callersMethodparseName
(b []byte)
icmp/interface.go:168
↓ 2 callersMethodsendPackets
()
main.go:176
↓ 2 callersFunctionsupportsNonPrivilegedICMP
()
icmp/diag_test.go:275
↓ 2 callersFunctionwaitForPPSPulse
()
pps_other.go:11
↓ 1 callersMethodIPv6PacketConn
IPv6PacketConn returns the ipv6.PacketConn of c. It returns nil when c is not created as the endpoint for ICMPv6.
icmp/endpoint.go:39
↓ 1 callersMethodLen
Len implements the Len method of MessageBody interface.
icmp/paramprob.go:21
↓ 1 callersFunctionListenPacket
for now only darwin supports this option ListenPacket listens for incoming ICMP packets addressed to address. See net.Dial for the syntax of address.
icmp/listen_posix.go:43
↓ 1 callersMethodLocalAddr
LocalAddr returns the local network address.
icmp/endpoint.go:81
↓ 1 callersFunctionParseIPv4Header
ParseIPv4Header returns the IPv4 header of the IPv4 packet that triggered an ICMP error message. This is found in the Data field of the ICMP error mes
icmp/ipv4.go:30
↓ 1 callersFunctionParseMessage
ParseMessage parses b as an ICMP message. The provided proto must be either the ICMPv4 or ICMPv6 protocol number.
icmp/message.go:141
↓ 1 callersFunctionPing
(addr string, seq int)
icmp-timestap-pinger/main.go:18
↓ 1 callersFunctioncalibrateAgainstApple
Returns out offset against apple's NTP (+ GPS) servers
ntp.go:118
↓ 1 callersFunctiongetLoss
(rx pingStruct, ses *session)
main.go:377
↓ 1 callersMethodgetNextAckSlot
()
main.go:167
↓ 1 callersFunctiongoogleAddr
(c *icmp.PacketConn, protocol int)
icmp/diag_test.go:215
↓ 1 callersFunctionhandleInboundHandshake
(buf []byte, rxAddr *net.UDPAddr, lSocket net.PacketConn)
main.go:306
↓ 1 callersFunctionhandlePacket
(buf []byte, rxAddr *net.UDPAddr, lSocket net.PacketConn)
main.go:245
↓ 1 callersFunctionhandlePrometheus
()
prom.go:17
↓ 1 callersFunctionhandleTCPconnection
(conn net.Conn)
sessionhandle.go:165
↓ 1 callersFunctionlast
(s string, b byte)
icmp/helper_posix.go:67
↓ 1 callersFunctionlistenAndRoute
()
main.go:220
↓ 1 callersFunctionlistenOnTCP
()
sessionhandle.go:142
↓ 1 callersMethodmarshal
(proto int, b []byte, attrs, l int)
icmp/interface.go:87
↓ 1 callersMethodmarshal
(proto int, b []byte)
icmp/interface.go:277
↓ 1 callersMethodmarshalIPAddr
(proto int, b []byte)
icmp/interface.go:122
↓ 1 callersMethodmarshalIfIndex
(proto int, b []byte)
icmp/interface.go:109
↓ 1 callersMethodmarshalMTU
(proto int, b []byte)
icmp/interface.go:182
↓ 1 callersMethodmarshalName
(proto int, b []byte)
icmp/interface.go:161
↓ 1 callersMethodmeasure
()
prom.go:91
↓ 1 callersFunctionmultipartMessageOrigDatagramLen
multipartMessageOrigDatagramLen takes b as an original datagram, and returns a required length for a padded orignal datagram in wire format.
icmp/multipart.go:36
↓ 1 callersFunctionnewSessionID
()
sessionhandle.go:222
↓ 1 callersFunctionntpTriplePoll
(server string)
ntp.go:178
↓ 1 callersMethodparseIPAddr
(b []byte)
icmp/interface.go:136
↓ 1 callersMethodparseIfIndex
(b []byte)
icmp/interface.go:114
↓ 1 callersFunctionparseInterfaceIdent
(b []byte)
icmp/interface.go:294
↓ 1 callersFunctionparseInterfaceInfo
(b []byte)
icmp/interface.go:195
↓ 1 callersFunctionparseMPLSLabelStack
(b []byte)
icmp/mpls.go:60
↓ 1 callersMethodparseMTU
(b []byte)
icmp/interface.go:187
↓ 1 callersFunctionparseRawBody
parseRawBody parses b as an ICMP message body.
icmp/messagebody.go:43
↓ 1 callersFunctionppsClockTicker
()
main.go:70
↓ 1 callersMethodsendUDPHandshake
sendUDPHandshake is called by session.startSession to send UDP handshakes in the background the actual handshake is RX'd elsewhere, decoded and this f
sessionhandle.go:101
↓ 1 callersFunctionsessionGC
()
main.go:119
↓ 1 callersFunctionsetupPPS
()
pps_other.go:7
↓ 1 callersFunctionsetupPPS
()
pps_linux.go:15
↓ 1 callersFunctionsockaddr
(family int, address string)
icmp/helper_posix.go:15
↓ 1 callersFunctionstartSession
(ip net.IP)
sessionhandle.go:16
↓ 1 callersFunctionsysClockTicker
()
main.go:94
↓ 1 callersMethodwaitForHandshake
()
sessionhandle.go:200
↓ 1 callersFunctionzoneToUint32
(zone string)
icmp/helper_posix.go:53
MethodCollect
Collect implements the prometheus.Collector interface.
prom.go:62
MethodDescribe
Describe implements the prometheus.Collector interface.
prom.go:56
FunctionExamplePacketConn_nonPrivilegedPing
()
icmp/example_test.go:17
MethodIPv4PacketConn
IPv4PacketConn returns the ipv4.PacketConn of c. It returns nil when c is not created as the endpoint for ICMPv4.
icmp/endpoint.go:30
FunctionIPv6PseudoHeader
IPv6PseudoHeader returns an IPv6 pseudo header for checksum calculation.
icmp/ipv6.go:15
MethodLen
()
ntp.go:93
MethodLen
()
ntp.go:105
MethodLen
Len implements the Len method of MessageBody interface.
icmp/timestamp.go:21
MethodLen
Len implements the Len method of MessageBody interface.
icmp/packettoobig.go:16
MethodLen
Len implements the Len method of Extension interface.
icmp/interface.go:72
MethodLen
Len returns the length of ICMP message body. The provided proto must be either the ICMPv4 or ICMPv6 protocol number.
icmp/messagebody.go:12
MethodLen
Len implements the Len method of MessageBody interface.
icmp/messagebody.go:30
MethodLen
Len implements the Len method of MessageBody interface.
icmp/timeexceeded.go:19
MethodLen
Len implements the Len method of Extension interface.
icmp/extension.go:160
MethodLen
Len implements the Len method of MessageBody interface.
icmp/echo.go:22
MethodLen
Len implements the Len method of MessageBody interface.
icmp/echo.go:62
MethodLen
Len implements the Len method of MessageBody interface.
icmp/echo.go:126
MethodLen
Len implements the Len method of MessageBody interface.
icmp/dstunreach.go:20
MethodLess
(i, j int)
ntp.go:99
MethodLess
(i, j int)
ntp.go:111
FunctionListenPacket
ListenPacket listens for incoming ICMP packets addressed to address. See net.Dial for the syntax of address. For non-privileged datagram-oriented ICM
icmp/listen_stub.go:31
MethodMarshal
Marshal implements the Marshal method of MessageBody interface.
icmp/timestamp.go:29
MethodMarshal
Marshal implements the Marshal method of MessageBody interface.
icmp/packettoobig.go:24
MethodMarshal
Marshal implements the Marshal method of Extension interface.
icmp/interface.go:78
next →1–100 of 137, ranked by callers