ifconfig_ieee80211_status, METH_VARARGS, "ieee80211_status(ifname)\n" }, { "setifaddr", (PyCFunction)setifaddr, METH_VARARGS | METH_KEYWORDS, "setifaddr(ifname, addr, netmask='', broadcast='',\n" " dst='', alias=False, delete=False)\n\n" "Set the given address addr to interface ifname.\n" "Only AF_INET family is supported at the moment.\n\n" "broadcast and dst are exclusive (the same)\n" }, {NULL, NULL, NULL, NULL}, }; PyMODINIT_FUNC initifconfig(void) { Py_InitModule("ifconfig", ifconfig_methods); }