▲ 1014 ▼ GoOn (programming.dev) submitted 2 years ago by mac@programming.dev to c/programmer_humor@programming.dev 107 comments fedilink hide all child comments
[–] Static_Rocket@lemmy.world 177 points 2 years ago (2 children) 0.0.0.0/0 0::0/0 You didn't specify it couldn't be in CIDR block notation... permalink fedilink source hideshow 4 child comments replies: [–] Redjard@lemmy.dbzer0.com 27 points 2 years ago ::/0 permalink fedilink source parent [–] Mr_Dr_Oink@lemmy.world 7 points 2 years ago (1 child) Remember, when we abbreviate an ipv6 address all leading zeros are reduced to a single 0. E.g 0003 would just become 03 When there are geoups of 4 zeros these can be represented as a single 0 or as a double colon :: But we can only use the :: once so when summarizing an address containing multiple groups of 4 0s one after the other they can all be abbreviated to a single :: Eg fe80:0000:0000:0000:0210:5aff:feaa:20a2 would become fe80::210:5aff:feaa:20a2 Therefore it is perfectly valid to abbreviate an address of 0000:0000:0000:0000:0000:0000:0000:0000 /0 to just ::/0 permalink fedilink source parent hideshow 2 child comments replies: [–] Static_Rocket@lemmy.world 2 points 2 years ago Eh, I've seen some software internally prefer 0::0 instead of just ::0 or :: . Notation wise though you are correct, it is unnecessary. permalink fedilink source parent
[–] Mr_Dr_Oink@lemmy.world 7 points 2 years ago (1 child) Remember, when we abbreviate an ipv6 address all leading zeros are reduced to a single 0. E.g 0003 would just become 03 When there are geoups of 4 zeros these can be represented as a single 0 or as a double colon :: But we can only use the :: once so when summarizing an address containing multiple groups of 4 0s one after the other they can all be abbreviated to a single :: Eg fe80:0000:0000:0000:0210:5aff:feaa:20a2 would become fe80::210:5aff:feaa:20a2 Therefore it is perfectly valid to abbreviate an address of 0000:0000:0000:0000:0000:0000:0000:0000 /0 to just ::/0 permalink fedilink source parent hideshow 2 child comments replies: [–] Static_Rocket@lemmy.world 2 points 2 years ago Eh, I've seen some software internally prefer 0::0 instead of just ::0 or :: . Notation wise though you are correct, it is unnecessary. permalink fedilink source parent
[–] Static_Rocket@lemmy.world 2 points 2 years ago Eh, I've seen some software internally prefer 0::0 instead of just ::0 or :: . Notation wise though you are correct, it is unnecessary. permalink fedilink source parent