diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2013-10-12 11:55:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2013-10-12 11:55:47 +0000 |
commit | 4c6fb825538bec33756704209e5219d08b2cf3d6 (patch) | |
tree | 167697752611b7ed80f09be0bf5ba19564bbf74b /sys/net/if_bridge.c | |
parent | c0c6fa8af51312b89234aa1dc73fbc97678c56e9 (diff) |
give tagname2tag and its siblings an extra "create" parameter. if 1, it
behaves like before and creates the mapping if needed. if 0, lookup only.
looked over by many, ok phessler sthen
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r-- | sys/net/if_bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 2aa4ce05341..9ea29ba1a3f 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.214 2013/08/21 13:53:48 mpi Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.215 2013/10/12 11:55:45 henning Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -2137,7 +2137,7 @@ bridge_addrule(struct bridge_iflist *bif, struct ifbrlreq *req, int out) n->brl_flags = req->ifbr_flags; #if NPF > 0 if (req->ifbr_tagname[0]) - n->brl_tag = pf_tagname2tag(req->ifbr_tagname); + n->brl_tag = pf_tagname2tag(req->ifbr_tagname, 1); else n->brl_tag = 0; #endif |