This wiki has been migrated to https://gitlab.com/wireshark/wireshark/-/wikis/home and is now deprecated. Please use that site instead.

Attachment 'mgw.pl'

Download

   1 #!/usr/bin/perl
   2 # (c) 2004 Luis Ontanon
   3 # distributed on the same terms of ethereal itself
   4 #
   5 # This script will create a transformation list needed for mapping DPC:OPC:CIC to MGC_TERM
   6 # on Ericsson's ViG (I suppose it works with IPT's MG/MGC as well)
   7 # usage:
   8 # perl mgw.pl mgc_dpc mgw_port peer_dpc cic_base [mgw_port peer_dpc cic_base [...]]
   9 
  10 $mydpc = shift;
  11 
  12 while (1) {
  13 
  14 	$port = shift;
  15 	$dpc = shift;
  16 	$base = shift;
  17 
  18 	last unless defined $port and defined $dpc and defined $base;
  19 
  20 	for ($cic = $base; $cic < $base + 31; $cic++) {
  21 		$ts = $cic % 32;
  22 		print "Action=Transform; Name=mgw_mgc.$mydpc.; Match=Strict; Mode=Insert; mtp3pc=$mydpc;  mtp3pc=$dpc; cic=$cic; .term=DS1/$port/$ts;\n";
  23 		print "Action=Transform; Name=mgc.$mydpc._mgw; Match=Strict; Mode=Insert; term=DS1/$port/$ts; .mtp3pc=$mydpc; .mtp3pc=$dpc; .cic=$cic;\n";
  24 	}
  25 } 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2004-12-12 15:06:06, 0.8 KB) [[attachment:mgw.pl]]
  • [get | view] (2005-02-05 18:21:13, 0.9 KB) [[attachment:pasv_ftp.mate]]
  • [get | view] (2018-05-28 15:00:19, 1.2 KB) [[attachment:web.mate]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.