aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/cli.c
AgeCommit message (Expand)AuthorFilesLines
2019-02-02CLI control of graph dispatch elogsDave Barach1-2/+41
2019-01-02Add microarch details to 'show cpu'.Paul Vinciguerra1-1/+1
2018-10-01API / CLI event-log tracingDave Barach1-0/+113
2018-08-24Rename struct mallinfo -> struct dlmallinfoDave Barach1-1/+1
2018-07-18Add config option to use dlmalloc instead of mheapDave Barach1-3/+43
2018-07-02Add per-numa page allocation info to 'show memory'Damjan Marion1-2/+7
2018-06-13Stat segment / client: show run" works nowDave Barach1-1/+1
2018-06-13cli: 'restart' should close open files (VPP-1068)Chris Luke1-2/+17
2018-06-05VPP API: Memory traceOle Troan1-9/+49
2017-05-24Fix tab-completion coverity issueYoann Desmouceaux1-1/+2
2017-05-23Add TAB-based auto-completion to the CLIYoann Desmouceaux1-0/+102
2017-04-21vlib: add cli command to dump all CLI commandsDamjan Marion1-0/+49
2017-04-06Use thread local storage for thread indexDamjan Marion1-3/+3
2017-03-08vlib: add process restart cliDamjan Marion1-0/+20
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+1173
kground-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 */ }
create loop int

set int state loop0 up
set int ip addr loop0 10.10.10.10/24

packet-generator new {
  name transit-deny
  limit 1
  node ip4-input
  size 64-64
  no-recycle
  data {
    UDP: 1.2.3.4 -> 2.2.2.2
    UDP: 3000 -> 3001
    length 128 checksum 0 incrementing 1
  }
}

packet-generator new {
  name transit-allow
  limit 1
  node ip4-input
  size 64-64
  no-recycle
  data {
    UDP: 1.1.1.1 -> 2.2.2.2
    UDP: 3000 -> 3001
    length 128 checksum 0 incrementing 1
  }
}

packet-generator new {
  name transit-allow-from-excemption
  limit 1
  node ip4-input
  size 64-64
  no-recycle
  data {
    UDP: 11.11.12.13 -> 2.2.2.2
    UDP: 6000 -> 6001
    length 128 checksum 0 incrementing 1
  }
}

packet-generator new {
  name for-us-allow-from-excemption
  limit 1
  node ip4-input
  size 64-64
  no-recycle
  data {
    UDP: 11.11.12.13 -> 10.10.10.10
    UDP: 6000 -> 6001
    length 128 checksum 0 incrementing 1
  }
}

packet-generator new {
  name for-us-allow
  limit 1
  node ip4-input
  size 64-64
  no-recycle
  data {
    UDP: 1.1.1.1 -> 10.10.10.10
    UDP: 3000 -> 3001
    length 128 checksum 0 incrementing 1
  }
}

tr add pg-input 100

set int ip addr pg0 10.10.11.10/24

set interface ip source-check pg0 strict

ip route add 1.1.1.1/32 via 10.10.11.11 pg0
ip route add 2.2.2.2/32 via 10.10.10.11 loop0

ip urpf-accept 11.11.0.0/16

#set interface ip source-check pg0 strict del
#set interface ip source-check pg0 loose

#ip urpf-accept del 11.11.0.0/16