From 08266e35878f198e2fa59fcfc9f0fc3a4b1dfbf5 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 10 Jan 2019 10:57:50 +0100 Subject: Add support for string types - strings are now generated as two fields for length and string itself - aliases are now sorted by name to prevent generating different code - dependencies are now managed by dep - binapi files are regenerated using VPP 19.01-rc0~622-g7b01e9e8 - old stats binary api has been deprecated and removed from VPP Change-Id: Ieb8515c73021339a45f407386f8e3d87dcf4469e Signed-off-by: Ondrej Fabry --- vendor/github.com/google/gopacket/pfring/doc.go | 58 ------------------------- 1 file changed, 58 deletions(-) delete mode 100644 vendor/github.com/google/gopacket/pfring/doc.go (limited to 'vendor/github.com/google/gopacket/pfring/doc.go') diff --git a/vendor/github.com/google/gopacket/pfring/doc.go b/vendor/github.com/google/gopacket/pfring/doc.go deleted file mode 100644 index 32baaf6..0000000 --- a/vendor/github.com/google/gopacket/pfring/doc.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2012 Google, Inc. All rights reserved. -// -// Use of this source code is governed by a BSD-style license -// that can be found in the LICENSE file in the root of the source -// tree. - -/*Package pfring wraps the PF_RING C library for Go. - -PF_RING is a high-performance packet capture library written by ntop.org (see -http://www.ntop.org/products/pf_ring/). This library allows you to utilize the -PF_RING library with gopacket to read packet data and decode it. - -This package is meant to be used with its parent, -http://github.com/google/gopacket, although it can also be used independently -if you just want to get packet data from the wire. - -Simple Example - -This is probably the simplest code you can use to start getting packets through -pfring: - - if ring, err := pfring.NewRing("eth0", 65536, pfring.FlagPromisc); err != nil { - panic(err) - } else if err := ring.SetBPFFilter("tcp and port 80"); err != nil { // optional - panic(err) - } else if err := ring.Enable(); err != nil { // Must do this!, or you get no packets! - panic(err) - } else { - packetSource := gopacket.NewPacketSource(ring, layers.LinkTypeEthernet) - for packet := range packetSource.Packets() { - handlePacket(packet) // Do something with a packet here. - } - } - -Pfring Tweaks - -PF_RING has a ton of optimizations and tweaks to make sure you get just the -packets you want. For example, if you're only using pfring to read packets, -consider running: - - ring.SetSocketMode(pfring.ReadOnly) - -If you only care about packets received on your interface (not those transmitted -by the interface), you can run: - - ring.SetDirection(pfring.ReceiveOnly) - -Pfring Clusters - -PF_RING has an idea of 'clusters', where multiple applications can all read from -the same cluster, and PF_RING will multiplex packets over that cluster such that -only one application receives each packet. We won't discuss this mechanism in -too much more detail (see the ntop.org docs for more info), but here's how to -utilize this with the pfring go library: - - ring.SetCluster(1, pfring.ClusterPerFlow5Tuple) -*/ -package pfring -- cgit 1.2.3-korg