DOKK / manpages / debian 11 / libnetpacket-perl / NetPacket::IPX.3pm.en
NetPacket::IPX(3pm) User Contributed Perl Documentation NetPacket::IPX(3pm)

NetPacket::IPX - Assemble and disassemble IPX packets

version 1.7.2

  use NetPacket::IPX;
  
  my $ipx = NetPacket::IPX->decode($raw_pkt);
  
  my $raw_pkt = $ipx->encode();
  
  my $ipx = NetPacket::IPX->new(
          tc   => 0,
          type => 1,
          
          dest_network => "00:00:00:01",
          dest_node    => "FF:FF:FF:FF:FF:FF",
          dest_socket  => 1234,
          
          src_network => "00:00:00:01",
          src_node    => "12:34:56:78:90:AB",
          src_socket  => 5678,
          
          data => "...",
  );

"NetPacket::IPX" is a "NetPacket" class for encoding and decoding IPX packets.

Decode a packet and return a "NetPacket::IPX" instance.

encode()

Return the encoded form of a "NetPacket::IPX" instance.

Construct a "NetPacket::IPX" instance with arbitrary contents. All arguments listed in the SYNOPSIS are mandatory.

Throws an exception on missing/invalid arguments.

The following fields are available in a "NetPacket::IPX" instance:

Traffic Control field, the number of routers an IPX packet has passed through.
Type field.
Destination network number, in the format "XX:XX:XX:XX".
Destination node number, in the format "XX:XX:XX:XX:XX:XX".
Destination socket number.
Source network number, in the format "XX:XX:XX:XX".
Source node number, in the format "XX:XX:XX:XX:XX:XX".
Source socket number.
Packet payload.

Copyright (C) 2014 Daniel Collins

This module is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

Daniel Collins <solemnwarning@solemnwarning.net>

2019-08-03 perl v5.28.1