mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
allow inetd like program exec
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1060 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9d728e8c4e
commit
a3d4af03bb
5 changed files with 46 additions and 13 deletions
|
@ -1249,7 +1249,6 @@ int
|
|||
tcp_ctl(so)
|
||||
struct socket *so;
|
||||
{
|
||||
#if 0
|
||||
struct sbuf *sb = &so->so_snd;
|
||||
int command;
|
||||
struct ex_list *ex_ptr;
|
||||
|
@ -1259,6 +1258,7 @@ tcp_ctl(so)
|
|||
DEBUG_CALL("tcp_ctl");
|
||||
DEBUG_ARG("so = %lx", (long )so);
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Check if they're authorised
|
||||
*/
|
||||
|
@ -1267,7 +1267,7 @@ tcp_ctl(so)
|
|||
sb->sb_wptr += sb->sb_cc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
command = (ntohl(so->so_faddr.s_addr) & 0xff);
|
||||
|
||||
switch(command) {
|
||||
|
@ -1300,6 +1300,7 @@ tcp_ctl(so)
|
|||
DEBUG_MISC((dfd, " executing %s \n",ex_ptr->ex_exec));
|
||||
return(fork_exec(so, ex_ptr->ex_exec, do_pty));
|
||||
|
||||
#if 0
|
||||
case CTL_CMD:
|
||||
for (tmpso = tcb.so_next; tmpso != &tcb; tmpso = tmpso->so_next) {
|
||||
if (tmpso->so_emu == EMU_CTL &&
|
||||
|
@ -1318,8 +1319,6 @@ tcp_ctl(so)
|
|||
sb->sb_wptr += sb->sb_cc;
|
||||
do_echo=-1;
|
||||
return(2);
|
||||
}
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue