Репозитории ALT
S: | 2.0.11-alt2 |
5.1: | 2.0.6-alt2 |
4.1: | 2.0.6-alt2 |
4.0: | 2.0.6-alt2 |
3.0: | |
+backports: | 2.0.6-alt0.M30.1 |
Другие репозитории
Upstream: | 2.0.8.2 |
Группа :: Система/Ядро и оборудование
Пакет: ebtables
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: ebtables-2.0.6-deb-gcc4.patch
Скачать
Скачать
--- ebtables-2.0.6.orig/extensions/ebt_ip.c
+++ ebtables-2.0.6/extensions/ebt_ip.c
@@ -313,7 +313,7 @@
ipinfo->invflags |= EBT_IP_PROTO;
if (optind > argc)
print_error("Missing IP protocol argument");
- (unsigned char) i = strtoul(argv[optind - 1], &end, 10);
+ i = strtoul(argv[optind - 1], &end, 10);
if (*end != '\0') {
struct protoent *pe;
--- ebtables-2.0.6.orig/extensions/ebt_vlan.c
+++ ebtables-2.0.6/extensions/ebt_vlan.c
@@ -141,7 +141,7 @@
check_option(flags, OPT_VLAN_ID);
CHECK_INV_FLAG(EBT_VLAN_ID);
CHECK_IF_MISSING_VALUE;
- (unsigned short) local.id =
+ local.id =
strtoul(argv[optind - 1], &end, 10);
CHECK_RANGE(local.id > 4094 || *end != '\0');
vlaninfo->id = local.id;
@@ -152,7 +152,7 @@
check_option(flags, OPT_VLAN_PRIO);
CHECK_INV_FLAG(EBT_VLAN_PRIO);
CHECK_IF_MISSING_VALUE;
- (unsigned char) local.prio =
+ local.prio =
strtoul(argv[optind - 1], &end, 10);
CHECK_RANGE(local.prio >= 8 || *end != '\0');
vlaninfo->prio = local.prio;
@@ -163,7 +163,7 @@
check_option(flags, OPT_VLAN_ENCAP);
CHECK_INV_FLAG(EBT_VLAN_ENCAP);
CHECK_IF_MISSING_VALUE;
- (unsigned short) local.encap =
+ local.encap =
strtoul(argv[optind - 1], &end, 16);
if (*end != '\0') {
ethent = getethertypebyname(argv[optind - 1]);
--- ebtables-2.0.6.orig/extensions/ebt_limit.c
+++ ebtables-2.0.6/extensions/ebt_limit.c
@@ -203,15 +203,15 @@
static struct ebt_u_match limit_match =
{
- .name EBT_LIMIT_MATCH,
- .size sizeof(struct ebt_limit_info),
- .help print_help,
- .init init,
- .parse parse,
- .final_check final_check,
- .print print,
- .compare compare,
- .extra_ops opts,
+ .name = EBT_LIMIT_MATCH,
+ .size = sizeof(struct ebt_limit_info),
+ .help = print_help,
+ .init = init,
+ .parse = parse,
+ .final_check = final_check,
+ .print = print,
+ .compare = compare,
+ .extra_ops = opts,
};
static void _init(void) __attribute((constructor));
--- ebtables-2.0.6.orig/ebtables.c
+++ ebtables-2.0.6/ebtables.c
@@ -1171,6 +1171,7 @@
continue;
return i;
letscontinue:
+ continue;
}
return -1;
}