📄 netjig.h
字号:
/* * @(#) jig to exercise a UML/FreeSWAN kernel with two interfaces * * Copyright (C) 2001 Michael Richardson <mcr@freeswan.org> * * 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. See <http://www.fsf.org/copyleft/gpl.txt>. * * 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. * * RCSID $Id: netjig.h,v 1.3 2002/07/17 03:59:46 mcr Exp $ * * @(#) based upon uml_router from User-Mode-Linux tools package * */extern char *progname;extern jmp_buf getMeOut;#define ETH_ALEN 6#define MAX(x,y) ((x) > (y) ? (x) : (y))/* prototypes */extern void sig_handler(int sig);extern void create_socket_dir(struct netjig_state *ns);extern void cmdprompt(struct netjig_state *ns);extern void forward_data(struct nethub *nh, struct packet *p, int len);extern int cmdread(struct netjig_state *ns, char *buf, int len);extern void *xmalloc1(size_t size, char *file, int linenum);/* from cmdmode.c */extern void finish_waitplay(struct netjig_state *ns);extern int cmdread(struct netjig_state *ns, char *buf, int len);/* * $Log: netjig.h,v $ * Revision 1.3 2002/07/17 03:59:46 mcr * debugged uml_switch - added "-name" option. * * Revision 1.2 2002/07/14 02:48:48 mcr * first version of merged uml_switch/uml_netjig that compiles. * * Revision 1.1 2002/06/16 23:51:16 mcr * revised uml_netjig - cmd mode has vastly improved, and it * now can run a single UML in cmd mode. * man page still missing. * * * Local variables: * c-file-style: "linux" * c-basic-offset: 8 * End: * */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -