Comments (6)
Hello?
Anyone here would help?
Thanks.
from ofp.
Hi,
I guess OFP maintainers are in vacation. Btw, since you are with Nokia, can you check what Matias/Jere/etc. are doing?
Else, I can have a look at this in the following days...
from ofp.
Hi @bogdanPricope
Thx for the information,
Actually I'm not with Nokia.
I'll try to make a if (1)
in my project. And keep monitoring what will happen.
Also will be patient to wait for the maintainers' response.
Regards
from ofp.
Oops.. my bad (my confusion).
Ok, it looks like this is a remain of the initial integration of BSD code... (one of those things was supposed to be fixed during incubation phase or immediately after). So, there is no better explanation for the 'error' being 0 other than the poor integration.
Have a look at this code for reference (https://reviews.freebsd.org/file/data/ls656a7hy5wlwjbxe35f/PHID-FILE-cvyptzi6cc3u67kpuqcl/file).
Else, ofp_nolocaltimewait should be (never tried) configurable with ofp_sysctl().
Btw, what is the problem with V_tcptw_zone?
from ofp.
Thanks a lot for the information
I found that
int error = 0;
#ifdef INET6
if (isipv6)
error = in6_localaddr(&inp->in6p_faddr);
#endif
#if defined(INET6) && defined(INET)
else
#endif
#ifdef INET
error = in_localip(inp->inp_faddr);
#endif
in the Reference, so the error
was meant to check if the peer ip was ours? (Correct me if I was wrong)
Btw, what is the problem with V_tcptw_zone?
A: I still have no idea about it and cannot figure out whether it is an ofp issue or an odp issue.
My project is working with an odp version implemented by the Marvell.
And during the Stress Testing, I can always find that there will be very few possibilities that, an fd keeps open along with its time wait timer active, but the timer will never expire and the callout fails to be called. After some ineffective troubleshooting, I finally decided to close the tcptw_zone
from ofp.
I guess the original implementation was like this:
/*
-
Return 1 if an internet address is for the local host and configured
-
on one of its interfaces.
*/
int
in_localip(struct in_addr in)
{
struct rm_priotracker in_ifa_tracker;
struct in_ifaddr *ia;IN_IFADDR_RLOCK(&in_ifa_tracker); LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) { if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr) { IN_IFADDR_RUNLOCK(&in_ifa_tracker); return (1); } } IN_IFADDR_RUNLOCK(&in_ifa_tracker); return (0);
}
TCP side is not so great in OFP. I was planing some updates in my own repo but I did not had the time.
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.