Displaying 1 result from an estimated 1 matches for "b_mac".
Did you mean:
s_mac
2004 Sep 22
2
Grandstream bin cfg.txt generator
...82014e20'; # hexadecimal mac address
my $f_in = 'cfg.in'; # file body, configfile containing all parameters
my $f_out = 'cfg.txt'; # the configfile that will be written to
my $h_crlf = '0d0a'; # hexadecimal crlf
# convert some things to binary
my $b_mac = pack("H12", $h_mac); # convert 12 hex numbers to bin
my $b_crlf = pack("H4", $h_crlf); # convert 4 hex numbers to bin
# open configfile and make body in ascii (a_body)
my $a_body;
open F,$f_in;
while (<F>) {
chomp; # remove trailing lf
s/\#.*$//g; # remove comme...