Skip to content

Commit 1d4b5d5

Browse files
author
davidgraeff
committed
Documentation (some files describe not yet committed functions) [skip ci]
1 parent feb76f1 commit 1d4b5d5

6 files changed

+43
-0
lines changed

doc/aspect_integration_api.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Aspect Integration API
2+
======================
3+
[back](../readme.md)
4+
TODO
5+
6+
You do not have to select any option in cmake as the Aspect-oriented integration way is the default way to build.
7+
Code-wise you have to provide aspects to cover this functionally:
8+
* Integrate _IP::init()_ into your initialize routines.
9+
* Route received network traffic to IPStack::Router() __TODO__.
10+
* Outgoing traffic can be accessed by an aspect with a pointcut to IPStack::SendBuffer::Send(char* data, int len) __TODO__.
11+
12+
Example: Look at `integration/linux_userspace_with_aspects`.

doc/aspectless_integration_api.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Aspectless Integration API
2+
==========================
3+
[back](../readme.md)
4+
5+
In CMake:
6+
* Select the option __"BUILD_ONLY_LIB"__.
7+
* If you do not have a multitask system, you also need to check __"BUILD_ONLY_ONE_TASK"__.
8+
9+
Code-wise you have to setup the following:
10+
* call _IP::init()_ before using any of the ipstack methods.
11+
* Route traffic received from your network card driver to _IP::receive_from_network(char* data, int len)_.
12+
* Implement a function for sending to your network card driver and set the function pointer of _IP::send_to_network(char* data, int len)_ accordingly. This is called by the ipstack for outgoing traffic.
13+
14+
Example: Look at `integration/linux_userspace_without_aspects`.

doc/collaborate_index.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Collaborate
2+
===========
3+
[back](../readme.md)

doc/cmake_integrate_libipstack.mk renamed to doc/include_in_cmake_based_project.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Integrate libipstack via cmake into your project
22
================================================
3+
[back](../readme.md)
34

45
Use add_subdirectory() to include libipstack in your own CMake based application
56
or operating system. You need to provide the kconfig executable either as file in

doc/socket_api.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Aspectless Socket API
2+
=====================
3+
[back](../readme.md)
4+
TODO

libipstack/src/ip/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Direcory "ip"
2+
This directory contains common IP related code, not specific to IPv4 or IPv6. There is
3+
common checksumming code, checksum offloading and
4+
you'll find the single/dual-stack implementation in the subdirectory **dual_single_stack**.
5+
6+
## Management Task
7+
The IP management task is a collection of background related tasks you need for not user specific traffic generated
8+
by the IP-Stack. This can be time related tasks like refreshing router table entries or ip specific tasks
9+
like icmpv4/v6 responses/requests.

0 commit comments

Comments
 (0)