30
submitted 2 months ago* (last edited 2 months ago) by ricdeh@lemmy.world to c/nostupidquestions@lemmy.world

So I understand that the subnet mask provides information about the length of the routing prefix (NID). It can be applied to a given IP address to extract the most significant bits allocated for the routing prefix and "zero out" the host identifier.

But why do we need the bitwise AND for that, specifically? I understand the idea, but would it not be easier to only parse the IP address ~~string~~ sequence of bits only for the first n bits and then disregard the remainder (the host identifier)? Because the information necessary for that is already available from the subnet mask WITHOUT the bitwise AND, e.g., with 255.255.255.0 or 1111 1111.1111 1111.1111 1111.0000 0000, you count the amount of 1s, which in this case is 24 and corresponds to that appendix in the CIDR notation. At this point, you already know that you only need to consider those first 24 bits from the IP address, making the subsequent bitwise AND redundant.

In the case of 192.168.2.150/24, for example, with subnet mask 255.255.255.0, you would get 192.168.2.0 (1100 0000.1010 1000.0000 0010.0000 0000) as the routing prefix or network identifier when represented as the first address of the network, however, the last eight bits are redundant, making the NID effectively only 192.168.2.

Now let's imagine an example where we create two subnets for the 192.168.2.0 network by taking one bit from the host identifier and appending it to the routing prefix. The corresponding subnet mask for these two subnets is 255.255.255.128, as we now have 25 bits making up the NID and 7 bits constituting the HID. So host A from subnet 192.168.2.5/25 (HID 5, final octet 0000 0101) now wants to send a request to 192.168.2.133/25 (HID 5, final octet 1000 0101). In order to identify the network to route to, the router needs the NID for the destination, and it gets that by either discarding the 7 least significant bits or by zeroing them out with a bitwise AND operation. Now, my point is, for identifying the network of which the destination host is part of (in this case, the host is B), the bitwise AND is redundant, is it not?

So why doesn't the router just store the NID with only the bits that are strictly required? Is it because the routing table entries are always of a fixed size of 32 bits for IPv4? Or is it because the bitwise AND operation is more efficiently computable?

[-] ricdeh@lemmy.world 147 points 2 months ago

Why should it affect LW or any other (non-Texan) instance? Any rogue country with populists at the head can implement any arbitrary legislation. That does not affect Lemmy instances hosted in countries with reasonable governments. If Texas wants to enforce their rules (or punish for non-compliance), it is on them to approach instance admins or block the site in their corner of the global internet.

[-] ricdeh@lemmy.world 47 points 4 months ago

I genuinely can't tell at whom you are addressing this. Those claiming it is a Windows problem or those that say otherwise?

27
submitted 4 months ago by ricdeh@lemmy.world to c/linux@lemmy.world

A signal handler race condition was found in OpenSSH's server (sshd), where a client does not authenticate within LoginGraceTime seconds (120 by default, 600 in old OpenSSH versions), then sshd's SIGALRM handler is called asynchronously. However, this signal handler calls various functions that are not async-signal-safe, for example, syslog().

32
submitted 5 months ago by ricdeh@lemmy.world to c/asklemmy@lemmy.world

I recently wanted to buy a product from a manufacturer and luckily they offered PayPal as a payment method. However, after I signed into my PayPal account, it wouldn't show my bank account as a payment option and instead prompted me to add a card or bank account, despite my account being fully confirmed and direct debit activated. PayPal customer service reps told me that maybe the retailer blocked direct debit through PayPal and I should try adding a credit card, however, why would they do that if they offer non-PayPal direct debit anyway? The customer service reps further told me that my account was in good standing, so there shouldn't be any problems with trust etc. Have you ever encountered an online shop that refused direct debit when handled by PayPal?

[-] ricdeh@lemmy.world 52 points 5 months ago

This is so stupid. He's not a pedo, the things he said were taken out of context (they were bad, but not that bad), and he has long apologised for his comments. People like you that are trying to smear his reputation without any regard for facts, cautiousness and ambivalence are so irrational that it almost appears as if you are getting paid for it.

[-] ricdeh@lemmy.world 42 points 5 months ago

I'd call that a win

[-] ricdeh@lemmy.world 49 points 5 months ago

As long as this digital infrastructure is developed by the administration itself, I find the idea of a digital bureaucracy great. But relying on proprietary products would undermine its purpose, imho.

[-] ricdeh@lemmy.world 94 points 5 months ago

Logging into a non-indexible proprietary service just to be able to read the documentation definitely does not contribute to accessibility.

[-] ricdeh@lemmy.world 62 points 5 months ago

People did talk about that though. There were so many allusions to Clippy when Copilot was launched, and even before that.

16
submitted 6 months ago by ricdeh@lemmy.world to c/linux@lemmy.world

Do you think it will be possible to run GNU/Linux operating systems on Microsoft's brand new "Copilot+ PCs"? The latter ones were unveiled just yesterday, and honestly, the sales pitch is quite impressive! A Verge article on them: Link

[-] ricdeh@lemmy.world 158 points 6 months ago

lmao this is too good, I would laugh but I'll be too busy (because I'll be meeting a girl, not that you are really going to understand)

[-] ricdeh@lemmy.world 52 points 8 months ago

Too little, too late. Military intervention or nothing, Israel and Gaza need to be taken in by UN peacekeeping forces and a new dialogue needs to be started about how to find a permanent solution for the coexistence of Palestinians and Israelis. If the need exists, maybe even deconstruct the current Israel to make way for a more tolerant and democratic nation that respects people of all origin.

[-] ricdeh@lemmy.world 49 points 1 year ago

What you are getting wrong is that they ARE "glassing" the entirety of Gaza, with almost no restraint. That is not excusable, no matter which enemy you are fighting. The thing is, they won't be able to kill Hamas either way, it's only a choice between less Palestinian civilian casualties and more of them

[-] ricdeh@lemmy.world 51 points 1 year ago

Because O is not naturally accuring and only exists under extremely special conditions, so virtually all pure oxygen appears as molecular oxygen O2.

[-] ricdeh@lemmy.world 49 points 1 year ago

I hope that this demonstrates to people that the oppressive reddit behaviour is not confined to special individuals (such running major social media sites), but is a systematic occurance in online forums. Simply switching from one toxically moderated space to another is not a solution. But this is where the strength of ActivityPub/fediverse lies: we are able to leave for another server while still using the same fundamental service and being able to interact with the same content as before. I would recommend startrek.website as a new or second home for those who wish to migrate.

1

"While developers start work on building Vision Pro apps, the potential for people upgrading to the iPhone 15 this year is a big reason for investor optimism."

56
submitted 1 year ago by ricdeh@lemmy.world to c/world@lemmy.world

"The IARC will reportedly classify aspartame as a possible carcinogen. But this isn’t a food safety agency, and the context matters."

view more: next ›

ricdeh

joined 1 year ago