Comments (7)
Hmm... I may need this feature. I'll have a look.
from ofp.
Do you have SP enabled?
So far, my best guess is that is waiting for a message from netlink (ofp_netlink.c) before setting the address ...and for some reason is not arriving.
from ofp.
from ofp.
The logic around loopback interface is a little bit odd: probably netlink was responding differently in the past.
Logic is like this:
- add an interface
- wait for netlink to inform you about link up and new address being set on linux 'lo' interface.
Now, 'link up' does not arrive (interface index under Linux is not set) and 'new address' does not arrive for 127.0.0.1 as it is already set (by Linux).
The best workaround so far:
- flush 127.0.0.1 address from linux 'lo'
ip addr flush dev lo - Modify code to set the 'correct' (in my case) linux interface index
ofp_config_interface_up_local()
{
...
data->linux_index = 1;
ofp_update_ifindex_lookup_tab(data);
...
} - configure through ofp cli file the loopback interface
$ cat ./ofp_lo.cli
loglevel set debug
ifconfig fp0 192.168.100.10/24
ifconfig lo0 127.0.0.1/8
Now, I can see address 127.0.0.1 set on the lo0 in the CLI ... don't know yet about bind.
from ofp.
Thanks Bogdan,
I will try these :-)
Could you suggest me if we should be using the development branch of OFP?
We are currently using the release 3.0.0 which as per the details got published in Dec 2018.
We are facing a few issues in our IPv6 testing and we feel that it could be since we are using a very old code base.
Is there any stability issues in the development branch.
Also, is any new release expected soon?
from ofp.
Hi Neetika,
I am trying to find complete fix for this problem but basically I don't have enough time.
Please take a look at last commit from https://github.com/bogdanPricope/ofp/tree/loopifs
Basically it gets the interface index (as reported by linux) and set it on the interface.
You still need to:
- flush 'lo' before starting ofp application
ip addr flush dev lo - configure the ip on the interface in cli:
ifconfig lo0 127.0.0.1/8
or with ofp_config_interface_up_local(...)
With that you should be able to bind and send/receive packets.
Note: my branch has some more commits .. you will need to integrate the last commit in your branch.
from ofp.
- I am (from the beginning of 2020) an independent contributor to ofp... so all opinions are my own and not 'official'.
- My opinion is that current version of development branch is better (fixes, etc.) but it requires an update of odp / dpdk. I know that not all the project owners are willing to do that.
- IPv6 was not requested by many customers... so was not fully developed or tested.
- I have no idea when the next release will take place (Nokia & friends can answer to this question).
I am contributing to the OFP (and to my own forked version of it) in my spare time but if your company is willing to pay for support and development we can discuss.
from ofp.
Related Issues (20)
- Error when ./configure --prefix=/usr/local/odp HOT 2
- TCP connection RESET with ODP 1.23 HOT 1
- Valgrind with OFP HOT 1
- ofp crash when processing fragment IP packet HOT 2
- Potential odp_packet_t double free HOT 2
- ofp tcp_reassembly not flushing the odp_packets causing packet leak HOT 1
- Regarding IPv6 feature of OFP
- __builtin_strncpy offset is out of the bounds HOT 2
- This project has been fallen behind odp too long. HOT 2
- OFP TCP TIME_WAIT buffer count increment HOT 3
- Does ofp support connectX5 ? HOT 5
- OFP TCP Keepalive Timer is not working as expected due to keepalive count (t_keepcnt) is not incremented and validated while processing Keepalive Timer HOT 7
- OFP Connect ?
- odp classifier sample app issue HOT 4
- No support for segmented odp packet in tcp_output & ofp_sosend_dgram HOT 3
- TCP zero window can not be sent correctly
- odph_thread_create(): Number of threads (19) and CPUs (1) does not match HOT 3
- If I run my application for the second time, i will always receive a SIGSEGV HOT 18
- `scripts/devbuild_ofp_odp_dpdk.sh` need to be update HOT 4
- How to determine when a packet has been sent HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofp.