build: support for Linux 3.5

This commit is contained in:
Jan Engelhardt
2012-06-30 18:38:49 +02:00
parent 36c349054e
commit b2bcedd1ef
7 changed files with 22 additions and 4 deletions

View File

@@ -185,7 +185,7 @@ llayer4_proto(const struct sk_buff *skb, unsigned int *offset, bool *hotdrop)
int err;
for (i = 0; i < ARRAY_SIZE(types); ++i) {
err = ipv6_find_hdr(skb, offset, types[i], NULL);
err = ipv6_find_hdr(skb, offset, types[i], NULL, NULL);
if (err >= 0)
return types[i];
if (err != -ENOENT) {