Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Net::TacacsPlus::PackeUsereContributed Perl Net::TacacsPlus::Packet::Header(3)

NAME
       Net::TacacsPlus::Packet::Header - Tacacs+ packet	header

DESCRIPTION
       3.  The TACACS+ packet header

       All TACACS+ packets always begin	with the following 12  byte  header.
       The  header  is	always	cleartext and describes	the remainder of the
       packet:

		1 2 3 4	5 6 7 8	 1 2 3 4 5 6 7 8  1 2 3	4 5 6 7	8  1 2 3 4 5 6 7 8

	       +----------------+----------------+----------------+----------------+
	       |major  | minor	|		 |		  |		   |
	       |version| version|      type	 |     seq_no	  |   flags	   |
	       +----------------+----------------+----------------+----------------+
	       |								   |
	       |			    session_id				   |
	       +----------------+----------------+----------------+----------------+
	       |								   |
	       |			      length				   |
	       +----------------+----------------+----------------+----------------+

METHODS
       new( somekey => somevalue)
	   Construct tacacs+ packet header object

	   1. if constructing from parameters:

		   'version': protocol version
		   'type': TAC_PLUS_(AUTHEN|AUTHOR|ACCT)
		   'seq_no': sequencenumber - default 1
		   'flags': TAC_PLUS_(UNENCRYPTED_FLAG|SINGLE_CONNECT_FLAG) - default none
		   'session_id': session id

	   2. if constructing from raw packet

		   'raw_header': raw packet

       decode($raw_data)
	   Decode $raw_data to version,	type, seq_no, flags, session_id,
	   length

       raw()
	   returns raw binary representation of	header.

	   NOTE	For complete binary header, length of body must	be added.

perl v5.32.0			  2011-07-02Net::TacacsPlus::Packet::Header(3)

NAME | DESCRIPTION | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Net::TacacsPlus::Packet::Header&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help