#!/usr/bin/python """ * pppdConfigParser.py - Parsing the configuration of a pppd peer * * (C) 2007 by Kristian Mueller * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Thanks to Bartek Zdanowski for changing ATDT to ATD * and suggesting #99* as dial string * * --- * chat-script parsing is not complete at all * we just parse what we need for gprs for now... * * --- * Paramenters and how we parse them for now * (the once called "FREQUENTLY USED OPTIONS" in the pppd man page) * * NFC - not fully compatible (can not parse all variants yet) * FC - fully compatible (can parse all variants of the poarameter) * NFC? - manpage was not explicit enough * * ttyname - a string starting with /dev/ (NFC) * speed - a line only containing an integer (FC) * asyncmap - 32 Bit Hex number (withoug "0x") default 0 (mask) (FC) * auth - flag - default False (FC) * call - filename of a file from relative to current dir (FC) * connect