DHCPv4.format.table.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>DHCPv4PacketTable</Name>
      <ViewSelectedBy>
        <TypeName>DHCPv4Packet</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>op</Label>
          </TableColumnHeader>
          <!-- <TableColumnHeader>
            <Label>htype</Label>
            <Width>1</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>1</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>1</Width>
          </TableColumnHeader> -->
          <TableColumnHeader>
            <Label>xid</Label>
            <Width>6</Width>
          </TableColumnHeader>
          <!-- <TableColumnHeader>
            <Width>4</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>4</Width>
          </TableColumnHeader> -->
          <TableColumnHeader>
            <Width>15</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>15</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>15</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>15</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>17</Width>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <scriptBlock>
                  [enum]::GetName([DHCPv4MessageType], $_.op)
                </scriptBlock>
              </TableColumnItem>
              <!-- <TableColumnItem>
                <PropertyName>htype</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>hlen</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>hops</PropertyName>
              </TableColumnItem> -->
              <TableColumnItem>
                <scriptBlock>
                  ($_.xid | % { $_.ToString("X") }) -join ""
                </scriptBlock>
              </TableColumnItem>
               <!-- <TableColumnItem>
                <PropertyName>secs</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>flags</PropertyName>
              </TableColumnItem> -->
              <TableColumnItem>
                <PropertyName>ciaddr</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>yiaddr</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>siaddr</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>giaddr</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>chaddr</PropertyName>
              </TableColumnItem>
             </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
    <View>
      <Name>DHCPv4OptionTable</Name>
      <ViewSelectedBy>
        <TypeName>DHCPv4Option</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>code</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>label</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>value</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>code</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>label</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>value</PropertyName>
              </TableColumnItem>
             </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
  </ViewDefinitions>
</Configuration>