Zum Inhalt
HALOWERK

Datenvertragswerk

ipv4 embedded address bit mapping

Apply RFC6052 structural IPv4-embedded address layouts for prefix lengths32/40/48/56/64/96 from a caller-supplied canonical128bit prefix. Embed four IPv4 octets or extract them from a32lowercase-hex IPv6 address, checking prefix and reserved u octet, reporting ignored nonzero suffix and canonical zero-suffix address. Structural mismatch is a known not_observed result. Fixed hexadecimal input/output only: no IPv6 text parser. This task does not assess WKP/global-address eligibility, prefix.

POST https://datenvertrag.halowerk.com/v1/ipv4-embedded-address-bit-mapping

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
prefix_hexstringJa
prefix_lengthSiehe SchemaJa
modeSiehe SchemaJa
addressSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "prefix_hex": {
      "type": "string",
      "minLength": 32,
      "maxLength": 32,
      "pattern": "^[0-9a-f]{32}$"
    },
    "prefix_length": {
      "enum": [
        32,
        40,
        48,
        56,
        64,
        96
      ]
    },
    "mode": {
      "enum": [
        "embed",
        "extract"
      ]
    },
    "address": {
      "anyOf": [
        {
          "type": "array",
          "minItems": 4,
          "maxItems": 4,
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          }
        },
        {
          "type": "string",
          "minLength": 32,
          "maxLength": 32,
          "pattern": "^[0-9a-f]{32}$"
        }
      ]
    }
  },
  "required": [
    "prefix_hex",
    "prefix_length",
    "mode",
    "address"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "prefix_hex": "20010db8000000000000000000000000",
  "prefix_length": 32,
  "mode": "embed",
  "address": [
    192,
    0,
    2,
    33
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →