@@ -231,7 +231,7 @@ struct globals {
|
||||
int verbose; /* must be int (used by getopt32) */
|
||||
smallint flg_deny_all;
|
||||
|
||||
unsigned rmt_ip; /* used for IP-based allow/deny rules */
|
||||
unsigned rmt_ip; /* used for IP-based allow/deny rules */
|
||||
time_t last_mod;
|
||||
char *rmt_ip_str; /* for $REMOTE_ADDR and $REMOTE_PORT */
|
||||
const char *bind_addr_or_port;
|
||||
@@ -267,7 +267,7 @@ struct globals {
|
||||
#if ENABLE_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
|
||||
Htaccess *script_i; /* config script interpreters */
|
||||
#endif
|
||||
char *iobuf; /* [IOBUF_SIZE] */
|
||||
char *iobuf; /* [IOBUF_SIZE] */
|
||||
#define hdr_buf bb_common_bufsiz1
|
||||
char *hdr_ptr;
|
||||
int hdr_cnt;
|
||||
|
@@ -295,7 +295,7 @@ struct globals {
|
||||
struct rlimit rlim_ofile;
|
||||
servtab_t *serv_list;
|
||||
int global_queuelen;
|
||||
int maxsock; /* max fd# in allsock, -1: unknown */
|
||||
int maxsock; /* max fd# in allsock, -1: unknown */
|
||||
/* whenever maxsock grows, prev_maxsock is set to new maxsock,
|
||||
* but if maxsock is set to -1, prev_maxsock is not changed */
|
||||
int prev_maxsock;
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* "ip" utility frontend.
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Bernhard Reutner-Fischer rewrote to use index_in_substr_array
|
||||
*/
|
||||
|
||||
|
@@ -15,9 +15,9 @@
|
||||
/* After libbb.h, because on some systems it needs other includes */
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#define CLASS_A_NETMASK ntohl(0xFF000000)
|
||||
#define CLASS_B_NETMASK ntohl(0xFFFF0000)
|
||||
#define CLASS_C_NETMASK ntohl(0xFFFFFF00)
|
||||
#define CLASS_A_NETMASK ntohl(0xFF000000)
|
||||
#define CLASS_B_NETMASK ntohl(0xFFFF0000)
|
||||
#define CLASS_C_NETMASK ntohl(0xFFFFFF00)
|
||||
|
||||
static unsigned long get_netmask(unsigned long ipaddr)
|
||||
{
|
||||
|
@@ -1,18 +1,15 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ip.c "ip" utility frontend.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
*
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
*/
|
||||
|
||||
#include "ip_common.h" /* #include "libbb.h" is inside */
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ipaddress.c "ip address".
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
* Laszlo Valko <valko@linux.karinthy.hu> 990223: address label must be zero terminated
|
||||
* Laszlo Valko <valko@linux.karinthy.hu> 990223: address label must be zero terminated
|
||||
*/
|
||||
|
||||
#include <fnmatch.h>
|
||||
@@ -20,7 +18,7 @@
|
||||
|
||||
#ifndef IFF_LOWER_UP
|
||||
/* from linux/if.h */
|
||||
#define IFF_LOWER_UP 0x10000 /* driver signals L1 up*/
|
||||
#define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
|
||||
#endif
|
||||
|
||||
struct filter_t {
|
||||
@@ -365,7 +363,7 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM,
|
||||
|
||||
struct nlmsg_list {
|
||||
struct nlmsg_list *next;
|
||||
struct nlmsghdr h;
|
||||
struct nlmsghdr h;
|
||||
};
|
||||
|
||||
static int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo)
|
||||
|
@@ -296,9 +296,9 @@ static int do_change(char **argv, const unsigned rtm)
|
||||
};
|
||||
struct rtnl_handle rth;
|
||||
struct {
|
||||
struct nlmsghdr n;
|
||||
struct ifinfomsg i;
|
||||
char buf[1024];
|
||||
struct nlmsghdr n;
|
||||
struct ifinfomsg i;
|
||||
char buf[1024];
|
||||
} req;
|
||||
smalluint arg;
|
||||
char *name_str = NULL, *link_str = NULL, *type_str = NULL, *dev_str = NULL;
|
||||
|
@@ -1,19 +1,16 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* iproute.c "ip route".
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
*
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized
|
||||
*/
|
||||
|
||||
#include "ip_common.h" /* #include "libbb.h" is inside */
|
||||
#include "ip_common.h" /* #include "libbb.h" is inside */
|
||||
#include "rt_names.h"
|
||||
#include "utils.h"
|
||||
|
||||
@@ -327,9 +324,9 @@ IF_FEATURE_IP_RULE(ARG_table,)
|
||||
};
|
||||
struct rtnl_handle rth;
|
||||
struct {
|
||||
struct nlmsghdr n;
|
||||
struct rtmsg r;
|
||||
char buf[1024];
|
||||
struct nlmsghdr n;
|
||||
struct rtmsg r;
|
||||
char buf[1024];
|
||||
} req;
|
||||
char mxbuf[256];
|
||||
struct rtattr * mxrta = (void*)mxbuf;
|
||||
|
@@ -1,18 +1,15 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* iprule.c "ip rule".
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
*
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* initially integrated into busybox by Bernhard Reutner-Fischer
|
||||
*/
|
||||
|
||||
@@ -191,9 +188,9 @@ static int iprule_modify(int cmd, char **argv)
|
||||
bool table_ok = 0;
|
||||
struct rtnl_handle rth;
|
||||
struct {
|
||||
struct nlmsghdr n;
|
||||
struct rtmsg r;
|
||||
char buf[1024];
|
||||
struct nlmsghdr n;
|
||||
struct rtmsg r;
|
||||
char buf[1024];
|
||||
} req;
|
||||
smalluint key;
|
||||
|
||||
|
@@ -1,16 +1,14 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* iptunnel.c "ip tunnel"
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
*
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980930: do not allow key for ipip/sit
|
||||
* Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980930: do not allow key for ipip/sit
|
||||
* Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
|
||||
*/
|
||||
|
||||
#include <netinet/ip.h>
|
||||
|
@@ -74,8 +74,8 @@ int FAST_FUNC rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, in
|
||||
struct iovec iov[2] = { { &nlh, sizeof(nlh) }, { req, len } };
|
||||
struct msghdr msg = {
|
||||
(void*)&nladdr, sizeof(nladdr),
|
||||
iov, 2,
|
||||
NULL, 0,
|
||||
iov, 2,
|
||||
NULL, 0,
|
||||
0
|
||||
};
|
||||
|
||||
@@ -108,8 +108,8 @@ static int rtnl_dump_filter(struct rtnl_handle *rth,
|
||||
|
||||
struct msghdr msg = {
|
||||
(void*)&nladdr, sizeof(nladdr),
|
||||
&iov, 1,
|
||||
NULL, 0,
|
||||
&iov, 1,
|
||||
NULL, 0,
|
||||
0
|
||||
};
|
||||
|
||||
@@ -214,8 +214,8 @@ int FAST_FUNC rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
|
||||
char *buf = xmalloc(8*1024); /* avoid big stack buffer */
|
||||
struct msghdr msg = {
|
||||
(void*)&nladdr, sizeof(nladdr),
|
||||
&iov, 1,
|
||||
NULL, 0,
|
||||
&iov, 1,
|
||||
NULL, 0,
|
||||
0
|
||||
};
|
||||
|
||||
|
@@ -11,11 +11,11 @@
|
||||
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||
|
||||
struct rtnl_handle {
|
||||
int fd;
|
||||
struct sockaddr_nl local;
|
||||
struct sockaddr_nl peer;
|
||||
uint32_t seq;
|
||||
uint32_t dump;
|
||||
int fd;
|
||||
struct sockaddr_nl local;
|
||||
struct sockaddr_nl peer;
|
||||
uint32_t seq;
|
||||
uint32_t dump;
|
||||
};
|
||||
|
||||
extern void xrtnl_open(struct rtnl_handle *rth) FAST_FUNC;
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ll_addr.c
|
||||
* 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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
|
||||
#include <net/if_arp.h>
|
||||
|
@@ -1,17 +1,14 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ll_map.c
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
|
||||
#include <net/if.h> /* struct ifreq and co. */
|
||||
#include <net/if.h> /* struct ifreq and co. */
|
||||
|
||||
#include "libbb.h"
|
||||
#include "libnetlink.h"
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ll_proto.c
|
||||
* 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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* ll_types.c
|
||||
* 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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/if_arp.h>
|
||||
|
@@ -1,13 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* rt_names.c rtnetlink names DB.
|
||||
* 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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
#include "libbb.h"
|
||||
#include "rt_names.h"
|
||||
|
@@ -1,14 +1,11 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* rtm_map.c
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* 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.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
|
@@ -4,11 +4,11 @@
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
|
||||
*
|
||||
* Changes:
|
||||
*
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
|
@@ -17,14 +17,14 @@ extern smallint oneline;
|
||||
extern char _SL_;
|
||||
|
||||
#ifndef IPPROTO_ESP
|
||||
#define IPPROTO_ESP 50
|
||||
#define IPPROTO_ESP 50
|
||||
#endif
|
||||
#ifndef IPPROTO_AH
|
||||
#define IPPROTO_AH 51
|
||||
#define IPPROTO_AH 51
|
||||
#endif
|
||||
|
||||
#define SPRINT_BSIZE 64
|
||||
#define SPRINT_BUF(x) char x[SPRINT_BSIZE]
|
||||
#define SPRINT_BUF(x) char x[SPRINT_BSIZE]
|
||||
|
||||
extern void incomplete_command(void) NORETURN;
|
||||
|
||||
|
@@ -21,10 +21,10 @@
|
||||
#endif
|
||||
|
||||
/* Taken from linux/sockios.h */
|
||||
#define SIOCSIFNAME 0x8923 /* set interface name */
|
||||
#define SIOCSIFNAME 0x8923 /* set interface name */
|
||||
|
||||
/* Octets in one Ethernet addr, from <linux/if_ether.h> */
|
||||
#define ETH_ALEN 6
|
||||
#define ETH_ALEN 6
|
||||
|
||||
#ifndef ifr_newname
|
||||
#define ifr_newname ifr_ifru.ifru_slave
|
||||
|
@@ -699,7 +699,7 @@ int netstat_main(int argc UNUSED_PARAM, char **argv)
|
||||
flags |= opt;
|
||||
}
|
||||
if (flags & (NETSTAT_TCP|NETSTAT_UDP|NETSTAT_RAW)) {
|
||||
printf("Active Internet connections "); /* xxx */
|
||||
printf("Active Internet connections "); /* xxx */
|
||||
|
||||
if ((flags & (NETSTAT_LISTENING|NETSTAT_CONNECTED)) == (NETSTAT_LISTENING|NETSTAT_CONNECTED))
|
||||
printf("(servers and established)");
|
||||
|
@@ -89,7 +89,7 @@
|
||||
//UNUSED: #define PANIC_THRESHOLD 1000 /* panic threshold (sec) */
|
||||
|
||||
#define FREQ_TOLERANCE 0.000015 /* frequency tolerance (15 PPM) */
|
||||
#define BURSTPOLL 0 /* initial poll */
|
||||
#define BURSTPOLL 0 /* initial poll */
|
||||
#define MINPOLL 5 /* minimum poll interval. std ntpd uses 6 (6: 64 sec) */
|
||||
#define BIGPOLL 10 /* drop to lower poll at any trouble (10: 17 min) */
|
||||
#define MAXPOLL 12 /* maximum poll interval (12: 1.1h, 17: 36.4h). std ntpd uses 17 */
|
||||
@@ -865,7 +865,7 @@ fit(peer_t *p, double rd)
|
||||
VERB3 bb_error_msg("peer %s unfit for selection: unreachable", p->p_dotted);
|
||||
return 0;
|
||||
}
|
||||
#if 0 /* we filter out such packets earlier */
|
||||
#if 0 /* we filter out such packets earlier */
|
||||
if ((p->lastpkt_status & LI_ALARM) == LI_ALARM
|
||||
|| p->lastpkt_stratum >= MAXSTRAT
|
||||
) {
|
||||
@@ -2110,7 +2110,7 @@ direct_freq(double fp_offset)
|
||||
}
|
||||
|
||||
static void
|
||||
set_freq(double freq) /* frequency update */
|
||||
set_freq(double freq) /* frequency update */
|
||||
{
|
||||
char tbuf[80];
|
||||
|
||||
|
@@ -870,7 +870,7 @@ static NOINLINE void ntp_init(char **argv)
|
||||
int prec = 0;
|
||||
int b;
|
||||
# if 0
|
||||
struct timespec tp;
|
||||
struct timespec tp;
|
||||
/* We can use sys_clock_getres but assuming 10ms tick should be fine */
|
||||
clock_getres(CLOCK_REALTIME, &tp);
|
||||
tp.tv_sec = 0;
|
||||
|
@@ -134,9 +134,9 @@ int slattach_main(int argc UNUSED_PARAM, char **argv)
|
||||
int i, encap, opt;
|
||||
struct termios state;
|
||||
const char *proto = "cslip";
|
||||
const char *extcmd; /* Command to execute after hangup */
|
||||
const char *extcmd; /* Command to execute after hangup */
|
||||
const char *baud_str;
|
||||
int baud_code = -1; /* Line baud rate (system code) */
|
||||
int baud_code = -1; /* Line baud rate (system code) */
|
||||
|
||||
enum {
|
||||
OPT_p_proto = 1 << 0,
|
||||
|
@@ -141,7 +141,7 @@ remove_iacs(struct tsession *ts, int *pnum_totty)
|
||||
if (ptr[1] == SB && ptr[2] == TELOPT_NAWS) {
|
||||
struct winsize ws;
|
||||
if ((ptr+8) >= end)
|
||||
break; /* incomplete, can't process */
|
||||
break; /* incomplete, can't process */
|
||||
ws.ws_col = (ptr[3] << 8) | ptr[4];
|
||||
ws.ws_row = (ptr[5] << 8) | ptr[6];
|
||||
ioctl(ts->ptyfd, TIOCSWINSZ, (char *)&ws);
|
||||
@@ -273,8 +273,8 @@ make_new_session(
|
||||
static const char iacs_to_send[] ALIGN1 = {
|
||||
IAC, DO, TELOPT_ECHO,
|
||||
IAC, DO, TELOPT_NAWS,
|
||||
/* This requires telnetd.ctrlSQ.patch (incomplete) */
|
||||
/* IAC, DO, TELOPT_LFLOW, */
|
||||
/* This requires telnetd.ctrlSQ.patch (incomplete) */
|
||||
/*IAC, DO, TELOPT_LFLOW,*/
|
||||
IAC, WILL, TELOPT_ECHO,
|
||||
IAC, WILL, TELOPT_SGA
|
||||
};
|
||||
|
@@ -47,8 +47,8 @@ struct vlan_ioctl_args {
|
||||
short vlan_qos;
|
||||
};
|
||||
|
||||
#define VLAN_GROUP_ARRAY_LEN 4096
|
||||
#define SIOCSIFVLAN 0x8983 /* Set 802.1Q VLAN options */
|
||||
#define VLAN_GROUP_ARRAY_LEN 4096
|
||||
#define SIOCSIFVLAN 0x8983 /* Set 802.1Q VLAN options */
|
||||
|
||||
/* On entry, table points to the length of the current string
|
||||
* plus NUL terminator plus data length for the subsequent entry.
|
||||
|
@@ -6,7 +6,7 @@
|
||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||
*
|
||||
* Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
|
||||
* Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
|
||||
* Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
|
||||
*/
|
||||
#include "libbb.h"
|
||||
|
||||
@@ -48,7 +48,7 @@ struct BUG_G_too_big {
|
||||
/* Must match option string! */
|
||||
enum {
|
||||
WGET_OPT_CONTINUE = (1 << 0),
|
||||
WGET_OPT_SPIDER = (1 << 1),
|
||||
WGET_OPT_SPIDER = (1 << 1),
|
||||
WGET_OPT_QUIET = (1 << 2),
|
||||
WGET_OPT_OUTNAME = (1 << 3),
|
||||
WGET_OPT_PREFIX = (1 << 4),
|
||||
@@ -785,7 +785,7 @@ However, in real world it was observed that some web servers
|
||||
*/
|
||||
case 204:
|
||||
break;
|
||||
case 300: /* redirection */
|
||||
case 300: /* redirection */
|
||||
case 301:
|
||||
case 302:
|
||||
case 303:
|
||||
|
Reference in New Issue
Block a user