diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2015-01-12 11:24:59 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2015-01-12 11:24:59 +0000 |
commit | 89c8d67e63759f0df1a88c29f70aa437a151fe89 (patch) | |
tree | f32c3780838c03c30b58a420446e9f2ecdc85a84 /sbin | |
parent | d6491d80eb60598ea3b55ba7237dd51d58991c72 (diff) |
Don't forget about protocol specification when configuring flows.
Tested by and OK claudio.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y index 6a2c570518d..a79234191a8 100644 --- a/sbin/iked/parse.y +++ b/sbin/iked/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.42 2014/11/20 05:51:20 jsg Exp $ */ +/* $OpenBSD: parse.y,v 1.43 2015/01/12 11:24:58 mikeb Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -2623,6 +2623,8 @@ create_ike(char *name, int af, u_int8_t ipproto, struct ipsec_hosts *hosts, flows[j].flow_dst.addr_net = ipb->netaddress; flows[j].flow_dst.addr_port = hosts->dport; + flows[j].flow_ipproto = ipproto; + pol.pol_nflows++; RB_INSERT(iked_flows, &pol.pol_flows, &flows[j]); } |