summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/lookup.c
AgeCommit message (Expand)AuthorFilesLines
2018-04-17IP mcast: allow unicast address as a next-hopNeale Ranns1-0/+16
2018-03-21reassembly: feature/concurrencyKlement Sekera1-2/+0
2018-03-16QoS recording and markingNeale Ranns1-1/+1
2018-02-16Allow providers to override glean behaviourNeale Ranns1-41/+0
2018-02-15Revert "Allow interface types to override glean adjacency behaivour"Ole Trøan1-0/+41
2018-02-15Allow interface types to override glean adjacency behaivourNeale Ranns1-41/+0
2018-02-01IPv4/6 reassemblyKlement Sekera1-0/+2
2017-12-11call unformat_free in some flow, remove unnecessary callsSwarup Nayak1-4/+12
2017-11-18unformat function for FIB pathsNeale Ranns1-147/+6
2017-11-08ip: fix container proxy coverity warningFlorin Coras1-4/+7
2017-11-07UDP Encapsulation.Neale Ranns1-1/+8
2017-11-07ip: add container proxy apiFlorin Coras1-19/+120
2017-10-25L3 proxy FIB source for container networkingAndrew Yourtchenko1-0/+79
2017-10-03Propagate duplicate IF addr add/del error up to API.Jon Loeliger1-1/+11
2017-09-13Add a name to the creation of an IP and MPLS tableNeale Ranns1-1/+4
2017-09-11FIB table add/delete APINeale Ranns1-0/+225
2017-08-19Fixed ip add bug for ip6 with review commentspragash1-4/+4
2017-08-09Allow multiple MPLS output labels to be passed on the CLINeale Ranns1-3/+10
2017-08-08L2 over MPLSNeale Ranns1-9/+9
2017-07-18FIB path preferenceNeale Ranns1-20/+11
2017-05-19mfib CLI bugs (VPP-852)Neale Ranns1-0/+2
2017-05-02Allow local/for-us replications for IP multicast routes on the CLINeale Ranns1-1/+6
2017-04-11Remove usued, redundant and deprecated code from lookup.hNeale Ranns1-32/+3
2017-04-07MPLS McastNeale Ranns1-1/+2
2017-04-07VPP-684.Add ip which mask length exceeding upper limit,ping segmentfaultflyingeagle231-1/+4
2017-04-03Adjacency layout change and move to vnet/adjNeale Ranns1-8/+2
2017-03-17Cache a 'has-features' flag on the adjacency for faster access. Reclaim the n...Neale Ranns1-5/+3
2017-03-08ARP resilience in the absence of IP config on input and output interfacesNeale Ranns1-0/+15
2017-03-08Proxy ND (RFC4389 - or a sub-set thereof). This allows the 'emulation' of bri...Neale Ranns1-0/+1
2017-02-22VPP-635: CLI Memory leak with invalid parameterBilly McFall1-11/+23
2017-02-20CLI extension to add multiple (S,G)s at once and time itNeale Ranns1-10/+76
2017-01-27IP Multicast FIB (mfib)Neale Ranns1-0/+171
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+967
n> # with Scapy (or other GPLv2+ licensed software), you are free to choose # Apache 2. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Stream profile for T-rex traffic generator. Stream profile: - Two streams sent in directions 0 --> 1 and 1 --> 0 at the same time. - Packet: ETH / IP / - Direction 0 --> 1: - Source IP address range: 10.0.0.1 - Destination IP address range: 20.0.0.0 - 20.0.19.135 - Direction 1 --> 0: - Source IP address range: 20.0.0.1 - Destination IP address range: 10.0.0.0 - 10.0.19.135 """ from trex.stl.api import * from profile_trex_stateless_base_class import TrafficStreamsBaseClass class TrafficStreams(TrafficStreamsBaseClass): """Stream profile.""" def __init__(self): """Initialization and setting of streams' parameters.""" super(TrafficStreamsBaseClass, self).__init__() # IPs used in packet headers. self.p1_src_start_ip = u"10.0.0.1" self.p1_dst_start_ip = u"20.0.0.0" self.p1_dst_end_ip = u"20.0.19.135" self.p2_src_start_ip = u"20.0.0.1" self.p2_dst_start_ip = u"10.0.0.0" self.p2_dst_end_ip = u"10.0.19.135" def define_packets(self): """Defines the packets to be sent from the traffic generator. Packet definition: | ETH | IP | :returns: Packets to be sent from the traffic generator. :rtype: tuple """ # Direction 0 --> 1 base_pkt_a = ( Ether() / IP( src=self.p1_src_start_ip, dst=self.p1_dst_start_ip, proto=61 ) ) # Direction 1 --> 0 base_pkt_b = ( Ether() / IP( src=self.p2_src_start_ip, dst=self.p2_dst_start_ip, proto=61 ) ) # Direction 0 --> 1 vm1 = STLScVmRaw( [ STLVmFlowVar( name=u"dst", min_value=self.p1_dst_start_ip, max_value=self.p1_dst_end_ip, size=4, op=u"inc" ), STLVmWrFlowVar( fv_name=u"dst", pkt_offset=u"IP.dst" ), STLVmFixIpv4( offset=u"IP" ) ] ) # Direction 1 --> 0 vm2 = STLScVmRaw( [ STLVmFlowVar( name=u"dst", min_value=self.p2_dst_start_ip, max_value=self.p2_dst_end_ip, size=4, op=u"inc" ), STLVmWrFlowVar( fv_name=u"dst", pkt_offset=u"IP.dst" ), STLVmFixIpv4( offset=u"IP" ) ] ) return base_pkt_a, base_pkt_b, vm1, vm2 def register(): """Register this traffic profile to T-rex. Do not change this function. :return: Traffic streams. :rtype: Object """ return TrafficStreams()