Update to latest kernel headers.
Fix out of range on paretonormal
This commit is contained in:
parent
3fcdebb6d0
commit
6864c1e789
|
|
@ -1,3 +1,9 @@
|
||||||
|
2005-08-08 Stephen Hemminger <shemminger@osdl.org>
|
||||||
|
|
||||||
|
* Update to 2.6.13+ kernel headers
|
||||||
|
* Fix array overrun in paretonormal
|
||||||
|
* Fix ematch to not include dropped fields from skb.
|
||||||
|
|
||||||
2005-07-14 Thomas Graf <tgraf@suug.ch>
|
2005-07-14 Thomas Graf <tgraf@suug.ch>
|
||||||
|
|
||||||
* Make ematch bison/lex build with common flex
|
* Make ematch bison/lex build with common flex
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
static char SNAPSHOT[] = "050607";
|
static char SNAPSHOT[] = "050808";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#define NETLINK_ROUTE 0 /* Routing/device hook */
|
#define NETLINK_ROUTE 0 /* Routing/device hook */
|
||||||
#define NETLINK_SKIP 1 /* Reserved for ENskip */
|
#define NETLINK_W1 1 /* 1-wire subsystem */
|
||||||
#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
|
#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
|
||||||
#define NETLINK_FIREWALL 3 /* Firewalling hook */
|
#define NETLINK_FIREWALL 3 /* Firewalling hook */
|
||||||
#define NETLINK_TCPDIAG 4 /* TCP socket monitoring */
|
#define NETLINK_TCPDIAG 4 /* TCP socket monitoring */
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
#define NETLINK_SELINUX 7 /* SELinux event notifications */
|
#define NETLINK_SELINUX 7 /* SELinux event notifications */
|
||||||
#define NETLINK_ARPD 8
|
#define NETLINK_ARPD 8
|
||||||
#define NETLINK_AUDIT 9 /* auditing */
|
#define NETLINK_AUDIT 9 /* auditing */
|
||||||
|
#define NETLINK_FIB_LOOKUP 10
|
||||||
#define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */
|
#define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */
|
||||||
|
#define NETLINK_NETFILTER 12 /* netfilter subsystem */
|
||||||
#define NETLINK_IP6_FW 13
|
#define NETLINK_IP6_FW 13
|
||||||
#define NETLINK_DNRTMSG 14 /* DECnet routing messages */
|
#define NETLINK_DNRTMSG 14 /* DECnet routing messages */
|
||||||
#define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */
|
#define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,7 @@ struct tc_rsvp_pinfo
|
||||||
__u8 protocol;
|
__u8 protocol;
|
||||||
__u8 tunnelid;
|
__u8 tunnelid;
|
||||||
__u8 tunnelhdr;
|
__u8 tunnelhdr;
|
||||||
|
__u8 pad;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ROUTE filter */
|
/* ROUTE filter */
|
||||||
|
|
@ -408,6 +409,7 @@ enum
|
||||||
TCF_EM_NBYTE,
|
TCF_EM_NBYTE,
|
||||||
TCF_EM_U32,
|
TCF_EM_U32,
|
||||||
TCF_EM_META,
|
TCF_EM_META,
|
||||||
|
TCF_EM_TEXT,
|
||||||
__TCF_EM_MAX
|
__TCF_EM_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -221,9 +221,11 @@ struct tc_gred_qopt
|
||||||
/* gred setup */
|
/* gred setup */
|
||||||
struct tc_gred_sopt
|
struct tc_gred_sopt
|
||||||
{
|
{
|
||||||
__u32 DPs;
|
__u32 DPs;
|
||||||
__u32 def_DP;
|
__u32 def_DP;
|
||||||
__u8 grio;
|
__u8 grio;
|
||||||
|
__u8 pad1;
|
||||||
|
__u16 pad2;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* HTB section */
|
/* HTB section */
|
||||||
|
|
@ -351,6 +353,7 @@ struct tc_cbq_ovl
|
||||||
#define TC_CBQ_OVL_DROP 3
|
#define TC_CBQ_OVL_DROP 3
|
||||||
#define TC_CBQ_OVL_RCLASSIC 4
|
#define TC_CBQ_OVL_RCLASSIC 4
|
||||||
unsigned char priority2;
|
unsigned char priority2;
|
||||||
|
__u16 pad;
|
||||||
__u32 penalty;
|
__u32 penalty;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -363,6 +363,8 @@ enum
|
||||||
struct rta_session
|
struct rta_session
|
||||||
{
|
{
|
||||||
__u8 proto;
|
__u8 proto;
|
||||||
|
__u8 pad1;
|
||||||
|
__u16 pad2;
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
|
|
@ -635,10 +637,13 @@ struct ifinfomsg
|
||||||
struct prefixmsg
|
struct prefixmsg
|
||||||
{
|
{
|
||||||
unsigned char prefix_family;
|
unsigned char prefix_family;
|
||||||
|
unsigned char prefix_pad1;
|
||||||
|
unsigned short prefix_pad2;
|
||||||
int prefix_ifindex;
|
int prefix_ifindex;
|
||||||
unsigned char prefix_type;
|
unsigned char prefix_type;
|
||||||
unsigned char prefix_len;
|
unsigned char prefix_len;
|
||||||
unsigned char prefix_flags;
|
unsigned char prefix_flags;
|
||||||
|
unsigned char prefix_pad3;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
||||||
|
|
@ -41,19 +41,14 @@ enum
|
||||||
TCF_META_ID_LOADAVG_1,
|
TCF_META_ID_LOADAVG_1,
|
||||||
TCF_META_ID_LOADAVG_2,
|
TCF_META_ID_LOADAVG_2,
|
||||||
TCF_META_ID_DEV,
|
TCF_META_ID_DEV,
|
||||||
TCF_META_ID_INDEV,
|
|
||||||
TCF_META_ID_REALDEV,
|
|
||||||
TCF_META_ID_PRIORITY,
|
TCF_META_ID_PRIORITY,
|
||||||
TCF_META_ID_PROTOCOL,
|
TCF_META_ID_PROTOCOL,
|
||||||
TCF_META_ID_SECURITY,
|
|
||||||
TCF_META_ID_PKTTYPE,
|
TCF_META_ID_PKTTYPE,
|
||||||
TCF_META_ID_PKTLEN,
|
TCF_META_ID_PKTLEN,
|
||||||
TCF_META_ID_DATALEN,
|
TCF_META_ID_DATALEN,
|
||||||
TCF_META_ID_MACLEN,
|
TCF_META_ID_MACLEN,
|
||||||
TCF_META_ID_NFMARK,
|
TCF_META_ID_NFMARK,
|
||||||
TCF_META_ID_TCINDEX,
|
TCF_META_ID_TCINDEX,
|
||||||
TCF_META_ID_TCVERDICT,
|
|
||||||
TCF_META_ID_TCCLASSID,
|
|
||||||
TCF_META_ID_RTCLASSID,
|
TCF_META_ID_RTCLASSID,
|
||||||
TCF_META_ID_RTIIF,
|
TCF_META_ID_RTIIF,
|
||||||
TCF_META_ID_SK_FAMILY,
|
TCF_META_ID_SK_FAMILY,
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ enum {
|
||||||
#define TCP_WINDOW_CLAMP 10 /* Bound advertised window */
|
#define TCP_WINDOW_CLAMP 10 /* Bound advertised window */
|
||||||
#define TCP_INFO 11 /* Information about this connection. */
|
#define TCP_INFO 11 /* Information about this connection. */
|
||||||
#define TCP_QUICKACK 12 /* Block/reenable quick acks */
|
#define TCP_QUICKACK 12 /* Block/reenable quick acks */
|
||||||
|
#define TCP_CONGESTION 13 /* Congestion control algorithm */
|
||||||
|
|
||||||
#define TCPI_OPT_TIMESTAMPS 1
|
#define TCPI_OPT_TIMESTAMPS 1
|
||||||
#define TCPI_OPT_SACK 2
|
#define TCPI_OPT_SACK 2
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,7 @@ struct xfrm_usersa_info {
|
||||||
__u8 flags;
|
__u8 flags;
|
||||||
#define XFRM_STATE_NOECN 1
|
#define XFRM_STATE_NOECN 1
|
||||||
#define XFRM_STATE_DECAP_DSCP 2
|
#define XFRM_STATE_DECAP_DSCP 2
|
||||||
|
#define XFRM_STATE_NOPMTUDISC 4
|
||||||
};
|
};
|
||||||
|
|
||||||
struct xfrm_usersa_id {
|
struct xfrm_usersa_id {
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i,n;
|
int i,n;
|
||||||
double x;
|
double x;
|
||||||
double table[TABLESIZE];
|
double table[TABLESIZE+1];
|
||||||
|
|
||||||
for (x = -10.0; x < 10.05; x += .00005) {
|
for (x = -10.0; x < 10.05; x += .00005) {
|
||||||
i = rint(TABLESIZE*normal(x, 0.0, 1.0));
|
i = rint(TABLESIZE*normal(x, 0.0, 1.0));
|
||||||
|
|
|
||||||
10
tc/em_meta.c
10
tc/em_meta.c
|
|
@ -62,18 +62,11 @@ struct meta_entry {
|
||||||
__A(SECTION, "Interfaces", "", ""),
|
__A(SECTION, "Interfaces", "", ""),
|
||||||
__A(DEV, "dev", "iv",
|
__A(DEV, "dev", "iv",
|
||||||
"Device the packet is on"),
|
"Device the packet is on"),
|
||||||
__A(INDEV, "indev", "iv",
|
|
||||||
"Device the packet came in"),
|
|
||||||
__A(REALDEV, "realdev", "iv",
|
|
||||||
"Underlying real device"),
|
|
||||||
|
|
||||||
__A(SECTION, "Packet attributes", "", ""),
|
__A(SECTION, "Packet attributes", "", ""),
|
||||||
__A(PRIORITY, "priority", "i",
|
__A(PRIORITY, "priority", "i",
|
||||||
"Priority of packet"),
|
"Priority of packet"),
|
||||||
__A(PROTOCOL, "protocol", "i",
|
__A(PROTOCOL, "protocol", "i",
|
||||||
"Link layer protocol"),
|
"Link layer protocol"),
|
||||||
__A(SECURITY, "security", "i",
|
|
||||||
"Security level"),
|
|
||||||
__A(PKTTYPE, "pkt_type", "i",
|
__A(PKTTYPE, "pkt_type", "i",
|
||||||
"Packet type (uni|multi|broad|...)cast"),
|
"Packet type (uni|multi|broad|...)cast"),
|
||||||
__A(PKTLEN, "pkt_len", "i",
|
__A(PKTLEN, "pkt_len", "i",
|
||||||
|
|
@ -91,9 +84,6 @@ struct meta_entry {
|
||||||
|
|
||||||
__A(SECTION, "Traffic Control", "", ""),
|
__A(SECTION, "Traffic Control", "", ""),
|
||||||
__A(TCINDEX, "tc_index", "i", "TC Index"),
|
__A(TCINDEX, "tc_index", "i", "TC Index"),
|
||||||
__A(TCVERDICT, "tc_verdict", "i", "TC Verdict"),
|
|
||||||
__A(TCCLASSID, "tc_classid", "i", "TC ClassID"),
|
|
||||||
|
|
||||||
__A(SECTION, "Routing", "", ""),
|
__A(SECTION, "Routing", "", ""),
|
||||||
__A(RTCLASSID, "rt_classid", "i",
|
__A(RTCLASSID, "rt_classid", "i",
|
||||||
"Routing ClassID (cls_route)"),
|
"Routing ClassID (cls_route)"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue