aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/unix/tapcli.c
AgeCommit message (Expand)AuthorFilesLines
2017-04-06Use thread local storage for thread indexDamjan Marion1-1/+1
2017-03-10VPP-659 TCP improvementsFlorin Coras1-1/+2
2017-03-06features: take device-input buffer advance value directlyDamjan Marion1-2/+1
2017-02-22VPP-635: CLI Memory leak with invalid parameterBilly McFall1-17/+40
2017-01-20Fix coverity warning, VPP-608Dave Barach1-0/+3
2017-01-18Fix coverity warnings, VPP-608Dave Barach1-2/+3
2017-01-14Provision linux stack ip4 and ip6 addresses for tap interfacesDave Barach1-72/+186
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+1328
ighlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
set int ip address GigabitEthernet2/1/0 1.2.3.4/24
set int state GigabitEthernet2/1/0 up 
set int state tuntap-0 down


cre sub GigabitEthernet2/1/0 1 dot1q 1 
cre sub GigabitEthernet2/1/0 2 dot1q 2 
cre sub GigabitEthernet2/1/0 3 dot1q 3
cre sub GigabitEthernet2/2/0 1 dot1q 1 
cre sub GigabitEthernet2/2/0 100 dot1q 100 


set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1
set int l2 tag-rewrite GigabitEthernet2/1/0.2 pop 1


l2tp session add client 11::1 our 22::2 l2-interface GigabitEthernet2/1/0.1
l2tp session add client 11::1 our 22::3 l2-interface GigabitEthernet2/1/0.2 local-session-id 2 l2-sublayer-present

ip route 11::1/128 via GigabitEthernet2/2/0
set ip6 neighbor GigabitEthernet2/2/0 11::1 00:02:04:06:08:0a

enable ip6 interface GigabitEthernet2/2/0 

set int ip6 l2tpv3 GigabitEthernet2/2/0

set int state GigabitEthernet2/1/0 up
set int state GigabitEthernet2/1/0.1 up
set int state GigabitEthernet2/1/0.2 up
set int state GigabitEthernet2/1/0.3 up
set int state GigabitEthernet2/2/0 up


trace add pg-input 2

clear error
clear run
clear int

packet-generator new {
  name decap
  limit 10
  size 200-200
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 1 cookie 0xffffffffffffffff 
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_bad_sid
  limit 30
  size 200-200
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 0x999 cookie 0xffffffffffffffff
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_bad_cookie
  limit 50
  size 200-200
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::2 
      L2TP: session_id 1 cookie 0x3333ffffffffffff
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name encap
  limit 100
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 1
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name decap_sublayer
  limit 300
  size 200-200
  node ethernet-input
  interface GigabitEthernet2/2/0
  data {
      IP6: 00:50:00:00:00:01 -> 00:50:56:b7:29:7a 
      L2TP: 11::1 -> 22::3
      L2TP: session_id 2 cookie 0xffffffffffffffff l2_sublayer 0
      IP4: 00:55:55:55:00:01 -> 00:dd:dd:dd:00:01
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}

packet-generator new {
  name encap_sublayer
  limit 700
  node ethernet-input
  interface GigabitEthernet2/1/0
  data {
      IP4: 0000.5555.0002 -> 00:00:dd:dd:00:02 vlan 2
      UDP: 1.2.3.4 -> 5.6.7.8
      incrementing 8
  }
}