Displaying 2 results from an estimated 2 matches for "skip_hard".
Did you mean:
skip_bad
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
...node_id_t);
- from = lookup_node_id(SRCID(&pkt));
- if(from && !memcmp(DSTID(&pkt), &nullid, sizeof nullid) && from->status.sptps) {
- if(sptps_verify_datagram(&from->sptps, DATA(&pkt), pkt.len - 2 * sizeof(node_id_t)))
- n = from;
- else
- goto skip_harder;
+#ifndef HAVE_RECVMMSG
+ pkt[0].len = len;
+#endif
+
+ for (i = 0; i < num; i++)
+ {
+#ifdef HAVE_RECVMMSG
+ pkt[i].len = msg[i].msg_len;
+ if(pkt[i].len <= 0 || pkt[i].len > MAXSIZE)
+ continue;
+#endif
+
+ sockaddrunmap(&addr[i]); /* Some braindead IPv6 implementations do stu...
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
...sizeof nullid) && from->status.sptps) {
> - if(sptps_verify_datagram(&from->sptps, DATA(&pkt), pkt.len - 2 * sizeof(node_id_t)))
> - n = from;
> - else
> - goto skip_harder;
> +#ifndef HAVE_RECVMMSG
> + pkt[0].len = len;
> +#endif
> +
> + for (i = 0; i < num; i++)
> + {
> +#ifdef HAVE_RECVMMSG
> + pkt[i].len = msg[i].msg_len;
> + if(pkt[i].len <= 0 || pkt[i].len > MAXSIZE)
> +...