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
Wrong broadcast address #105
Comments
I don't find your question, can you give me the link pls ? |
Yes I looked earlier today. I could be wrong on memory. It was a very long time ago. At any rate it looks be behaving correctly in line with rfc3021. |
Yes i look this rules, but i dont understand how, it's work for /30 -> output : 46.17.68.79 |
Are you curious where this is done in the library? Or curious why /30 behaves differently? A /30 has 4 addresses so you have an address for a network, two hosts, and a broadcast. It doesn't have the problem defined inrfc3021. So yes /31 and /30 behave differently as they should. |
Typically a /31 is a point to point network in either a VPN tunnel or a TDM (non Ethernet) Network, so there is really no concept of a broadcast address
…Sent from my iPhone
On 28 Nov 2018, at 17:54, crosson ***@***.***> wrote:
Are you curious where this is done in the library? Or curious why /30 behaves differently? A /30 has 4 addresses so you have an address for a network, two hosts, and a broadcast. It doesn't have the problem defined inrfc3021. So yes /31 and /30 behave differently as they should.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello guys, thank's for your feedback. Following your response, I discussed it with our network expert. We use the / 31s with nat IP addresses, and the library works with direct ip addresses if I understood correctly. So the library just does not work with how we use our IP addresses, I will try to modify the library to respond our needs, I will fork if it can serve. Thank you. |
IDK if this helps at all but instead of using the broadcast object to get the last IP you could use the entries method. Instead of Use
Which will return each object in your network inside an array which you can iterate over. |
Hello community,
i got a problem with the IPAddress lib, i dont know if it's a bug, or just a mistake from me.
I have this address ' 46.17.68.76/31 ', i want to have the broadcast addess, then i make :
the output : @address="255.255.255.255"
but for me the broadcast address for ' 46.17.68.76/31 ' is : 46.17.68.77
Thank's for your help!
The text was updated successfully, but these errors were encountered: