Functions | |
def | parse_and_validate_ipv4 (argument, name) |
Variables | |
args = parser.parse_args() | |
default | |
gw = parse_and_validate_ipv4(args.new_gw, "gateway address") | |
help | |
ip = parse_and_validate_ipv4(args.new_ip, "IP address") | |
string | msg = "$IP" |
nm = parse_and_validate_ipv4(args.nm, "netmask") | |
parser = argparse.ArgumentParser(description=__doc__) | |
returned = sock.recv(40) | |
sock = socket.socket() | |
def set_urg_ip.parse_and_validate_ipv4 | ( | argument, | |
name | |||
) |
Each address must have 4
Definition at line 36 of file set_urg_ip.py.
set_urg_ip.args = parser.parse_args() |
Definition at line 59 of file set_urg_ip.py.
set_urg_ip.default |
Definition at line 57 of file set_urg_ip.py.
set_urg_ip.gw = parse_and_validate_ipv4(args.new_gw, "gateway address") |
Definition at line 66 of file set_urg_ip.py.
set_urg_ip.help |
Definition at line 55 of file set_urg_ip.py.
set_urg_ip.ip = parse_and_validate_ipv4(args.new_ip, "IP address") |
Definition at line 65 of file set_urg_ip.py.
string set_urg_ip.msg = "$IP" |
Definition at line 68 of file set_urg_ip.py.
set_urg_ip.nm = parse_and_validate_ipv4(args.nm, "netmask") |
Definition at line 67 of file set_urg_ip.py.
set_urg_ip.parser = argparse.ArgumentParser(description=__doc__) |
Definition at line 54 of file set_urg_ip.py.
set_urg_ip.returned = sock.recv(40) |
Definition at line 78 of file set_urg_ip.py.
set_urg_ip.sock = socket.socket() |
Definition at line 71 of file set_urg_ip.py.