2 * Copyright (c) 2011 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "ofproto/ofproto.h"
23 /* This function is in a separate file because it is the only ofproto function
24 * required by ovs-ofctl, which allows ovs-ofctl to avoid linking in extra
27 /* Parses 'ofproto_name', which is of the form [type@]name into component
28 * pieces that are suitable for passing to ofproto_create(). The caller must
29 * free 'name' and 'type'. */
31 ofproto_parse_name(const char *ofproto_name, char **name, char **type)
33 dp_parse_name(ofproto_name, name, type);