-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP Socket on Loopback address 127.0.0.1 #257
Comments
Hmm... I may need this feature. I'll have a look. |
Do you have SP enabled? |
Yes, I have SP enabled, and from the traces it seemed to me that the IP
Address gets plumbed OK
But it refuses to let me create a UDP socket on the same.
…On Wed, Aug 19, 2020 at 4:05 AM Bogdan Pricope ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#257 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQB7SBSKRDEIWVD7N56KPTLSBL63VANCNFSM4PP2CEGQ>
.
|
The logic around loopback interface is a little bit odd: probably netlink was responding differently in the past.
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:
Now, I can see address 127.0.0.1 set on the lo0 in the CLI ... don't know yet about bind. |
Thanks Bogdan, I will try these :-) |
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
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. |
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. |
Hello,
I am trying to bind a UDP Socket on loopback address 127.0.0.1 using ofp_socket and ofp_bind.
I have created the local interface by calling:
ofp_config_interface_up_local(0, 0, inet_addr("127.0.0.1"), 8);
and then I call ofp_scoket and ofp_bind
I receive an error: "Cannot assign requested address"
Am I missing something?
Regards,
Neetika
The text was updated successfully, but these errors were encountered: