View | Details | Raw Unified | Return to bug 2735 | Differences between
and this patch

Collapse All | Expand All

(-)a/openbsd-compat/port-tun.c (-3 / +2 lines)
Lines 224-234 sys_tun_infilter(struct Channel *c, char *buf, int len) Link Here
224
	iph = (struct ip *)(ptr + sizeof(u_int32_t));
224
	iph = (struct ip *)(ptr + sizeof(u_int32_t));
225
	switch (iph->ip_v) {
225
	switch (iph->ip_v) {
226
	case 6:
226
	case 6:
227
		*af = AF_INET6;
227
		*af = htonl(AF_INET6);
228
		break;
228
		break;
229
	case 4:
229
	case 4:
230
	default:
230
	default:
231
		*af = AF_INET;
231
		*af = htonl(AF_INET);
232
		break;
232
		break;
233
	}
233
	}
234
#endif
234
#endif
235
- 

Return to bug 2735