DHCPv4.format.list.ps1xml

<?xml version="1.0" encoding="utf-8"?>
<!-- @see reference @url https://docs.microsoft.com/fr-fr/powershell/scripting/developer/format/format-schema-xml-reference?view=powershell-7 -->
<Configuration>
  <ViewDefinitions>
    <View>
      <Name>DHCPv4PacketList</Name>
      <ViewSelectedBy>
        <TypeName>DHCPv4Packet</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>op</Label>
                <scriptBlock>
                  [enum]::GetName([DHCPv4MessageType], $_.op)
                </scriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>htype</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>hlen</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>hops</PropertyName>
              </ListItem>
              <ListItem>
                <Label>xid</Label>
                <scriptBlock>
                  ($_.xid | ForEach-Object { $_.ToString("X") }) -join ""
                </scriptBlock>
              </ListItem>
               <ListItem>
                <PropertyName>secs</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>flags</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ciaddr</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>yiaddr</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>siaddr</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>giaddr</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>chaddr</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>sname</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>file</PropertyName>
              </ListItem>
              <ListItem>
                <Label>magic cookie</Label>
                <scriptBlock>
                  ($_.magicCookie | % { $_.ToString("X") }) -join ""
                </scriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>options</PropertyName>
                <!-- <label>options</label>
                <scriptBlock>
                  $code = @{label="code"; expression={$_[0]}}
                  $label = @{label="label"; expression={[enum]::GetName([DHCPv4OptionCode], $_[0])}}
                  $value = @{label="data"; expression={$_[1]}}
                  $_.options | Sort-Object | Select-Object $code, $label, $data
                </scriptBlock> -->
              </ListItem>
           </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
  </ViewDefinitions>
</Configuration>