Lines Matching full:opts
70 static int enable_l2_bearer(struct nlmsghdr *nlh, struct opt *opts,
76 if (!(opt = get_opt(opts, "device"))) {
126 static int enable_udp_bearer(struct nlmsghdr *nlh, struct opt *opts,
151 if (!(opt = get_opt(opts, "name"))) {
158 if (!(opt = get_opt(opts, "localip"))) {
165 if ((opt = get_opt(opts, "remoteip")))
168 if ((opt = get_opt(opts, "localport")))
171 if ((opt = get_opt(opts, "remoteport")))
232 struct opt opts[] = {
245 if (parse_opts(opts, cmdl) < 0) {
251 if (!(opt = get_opt(opts, "media"))) {
266 if ((opt = get_opt(opts, "domain")))
269 if ((opt = get_opt(opts, "priority"))) {
282 if ((err = enable_udp_bearer(nlh, opts, cmdl)))
289 if ((err = enable_l2_bearer(nlh, opts, cmdl)))
301 static int add_l2_bearer(struct nlmsghdr *nlh, struct opt *opts)
306 if (!(opt = get_opt(opts, "device"))) {
317 static int add_udp_bearer(struct nlmsghdr *nlh, struct opt *opts)
322 if (!(opt = get_opt(opts, "name"))) {
360 struct opt opts[] = {
367 if (parse_opts(opts, cmdl) < 0) {
373 if (!(opt = get_opt(opts, "media"))) {
394 if ((err = add_udp_bearer(nlh, opts)))
401 if ((err = add_l2_bearer(nlh, opts)))
447 struct opt opts[] = {
474 if (parse_opts(opts, cmdl) < 0)
487 if (!(opt = get_opt(opts, "media"))) {
498 if ((err = add_udp_bearer(nlh, opts)))
505 if ((err = add_l2_bearer(nlh, opts)))
586 struct opt opts[] = {
607 if (parse_opts(opts, cmdl) < 0)
615 if (!(opt = get_opt(opts, "media"))) {
627 if ((err = add_udp_bearer(nlh, opts)))
634 if ((err = add_l2_bearer(nlh, opts)))