File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,28 @@ type (
2525
2626// NetTCP returns the IPv4 kernel/networking statistics for TCP datagrams
2727// read from /proc/net/tcp.
28+ // Deprecated: Use github.com/mdlayher/netlink#Conn (with syscall.AF_INET) instead.
2829func (fs FS ) NetTCP () (NetTCP , error ) {
2930 return newNetTCP (fs .proc .Path ("net/tcp" ))
3031}
3132
3233// NetTCP6 returns the IPv6 kernel/networking statistics for TCP datagrams
3334// read from /proc/net/tcp6.
35+ // Deprecated: Use github.com/mdlayher/netlink#Conn (with syscall.AF_INET6) instead.
3436func (fs FS ) NetTCP6 () (NetTCP , error ) {
3537 return newNetTCP (fs .proc .Path ("net/tcp6" ))
3638}
3739
3840// NetTCPSummary returns already computed statistics like the total queue lengths
3941// for TCP datagrams read from /proc/net/tcp.
42+ // Deprecated: Use github.com/mdlayher/netlink#Conn (with syscall.AF_INET) instead.
4043func (fs FS ) NetTCPSummary () (* NetTCPSummary , error ) {
4144 return newNetTCPSummary (fs .proc .Path ("net/tcp" ))
4245}
4346
4447// NetTCP6Summary returns already computed statistics like the total queue lengths
4548// for TCP datagrams read from /proc/net/tcp6.
49+ // Deprecated: Use github.com/mdlayher/netlink#Conn (with syscall.AF_INET6) instead.
4650func (fs FS ) NetTCP6Summary () (* NetTCPSummary , error ) {
4751 return newNetTCPSummary (fs .proc .Path ("net/tcp6" ))
4852}
You can’t perform that action at this time.
0 commit comments