summaryrefslogtreecommitdiffstats
path: root/src/plugins/http_static/static_server.c
AgeCommit message (Expand)AuthorFilesLines
2020-04-03session: improve error reportingFlorin Coras1-1/+2
2020-03-12vppinfra: refactor clib_timebase_tDave Barach1-1/+2
2020-02-05vppinfra: numa vector placement supportDave Barach1-2/+4
2019-10-17http_static: pass http request type to builtin handlersDave Barach1-2/+2
2019-10-17http_static: add "http static cache clear" CLIDave Barach1-0/+75
2019-10-09hsa: use crypto_engine_type_t for TLSNathan Skrzypczak1-1/+1
2019-09-16http_static: add dynamic GET / POST method hooksDave Barach1-175/+137
2019-08-12http_static: fix session expiration timer bugsDave Barach1-33/+52
2019-08-12http_static: debug spew control, session expiration timersDave Barach1-18/+42
2019-08-10http_static: tls supportDave Barach1-100/+356
2019-06-12static_http: Typo in short_help.Paul Vinciguerra1-1/+1
2019-04-30svm: more fifo refactor/cleanupFlorin Coras1-1/+1
2019-04-25Clean up redirectsDave Barach1-21/+50
2019-04-16Static http serverDave Barach1-0/+1392
t .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 */ }
VPP has now been built, installed, and started.

To give it a spin, we can create a tap interface and try a simple ping
(with trace).

Make sure you have run:

$ vagrant ssh

To get to the vagrant VM:

vagrant@localhost:~$

Confirm that vpp is running with

vagrant@localhost:~$ sudo status vpp
vpp start/running, process 25202

To create the tap:

vagrant@localhost:~$ sudo vppctl tap connect foobar
Created tap-0 for Linux tap 'foobar'
vagrant@localhost:~$ sudo vppctl show int

To assign it an ip address (and 'up' the interface):

vagrant@localhost:~$ sudo vppctl set int ip address tap-0 192.168.1.1/24
vagrant@localhost:~$ sudo vppctl set int state tap-0 up

To turn on packet tracing for the tap interface:
vagrant@localhost:~$ sudo vppctl trace add tapcli-rx 10

Now, to set up and try the other end:
vagrant@localhost:~$ sudo ip addr add 192.168.1.2/24 dev foobar
vagrant@localhost:~$ ping -c 3 192.168.1.1

To look at the trace:
vagrant@localhost:~$ sudo vppctl show trace

And to stop tracing:

vagrant@localhost:~$ sudo vppctl clear trace

Other fun things to look at:

The vlib packet processing graph:
vagrant@localhost:~$ sudo vppctl show vlib graph

which will produce output like:

           Name                      Next                    Previous
ip4-icmp-input                  error-punt [0]               ip4-local
                                ip4-icmp-echo-request [1]
                                vpe-icmp4-oam [2]

To read this, the first column (Name) is the name of the node.
The second column (Next) is the name of the children of that node.
The third column (Previous) is the name of the parents of this node.

To see this README again:
cat /vagrant/README