main.c

来自「AirSnort 是一个无线局域网工具」· C语言 代码 · 共 59 行

C
59
字号
/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */#ifdef HAVE_CONFIG_H#  include <config.h>#endif#include <gtk/gtk.h>#include <signal.h>#include <sys/time.h>#include "interface.h"#include "support.h"int resetMAC();void changeChannel(int);void loadOpts();#include "RC4.h"intmain (int argc, char *argv[]){  struct itimerval tval;  //this will be the channel scanning interval, currently 0.2 sec  struct timeval interval = {0, 200000};  GtkWidget *AirSnortWindow;  gtk_set_locale ();  gtk_init (&argc, &argv);  setupIdentity();  loadOpts();  /*   * The following code was added by Glade to create one of each component   * (except popup menus), just so that you see something after building   * the project. Delete any components that you don't want shown initially.   */  AirSnortWindow = create_AirSnortWindow ();  gtk_widget_show (AirSnortWindow);  //this sets up the kchannel scanning stuff  signal(SIGALRM, changeChannel);  tval.it_interval = interval;  tval.it_value = interval;  setitimer(ITIMER_REAL, &tval, NULL);  gtk_main ();  resetMAC();  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?