Lines Matching refs:opt

243 static const char *dccp_feat_oname(const u8 opt)
245 switch (opt) {
288 #define dccp_feat_print_opt(opt, feat, val, len, mandatory) do { \
289 dccp_pr_debug("%s(%s, ", dccp_feat_oname(opt), dccp_feat_fname(feat));\
301 #define dccp_feat_print_opt(opt, feat, val, len, mandatory)
638 u8 opt, type, len, *ptr, nn_in_nbo[DCCP_OPTVAL_MAXLEN];
643 opt = dccp_feat_genopt(pos);
664 dccp_feat_print_opt(opt, pos->feat_num, ptr, len, 0);
666 if (dccp_insert_fn_opt(skb, opt, pos->feat_num, ptr, len, rpt))
672 (opt == DCCPO_CONFIRM_R || opt == DCCPO_CONFIRM_L)) {
1101 * @opt: %DCCPO_CHANGE_L or %DCCPO_CHANGE_R
1107 static u8 dccp_feat_change_recv(struct list_head *fn, u8 is_mandatory, u8 opt,
1111 const bool local = (opt == DCCPO_CHANGE_R);
1118 dccp_feat_print_opt(opt, feat, val, len, is_mandatory);
1211 * @is_mandatory: whether @opt was preceded by a Mandatory option
1212 * @opt: %DCCPO_CONFIRM_L or %DCCPO_CONFIRM_R
1218 static u8 dccp_feat_confirm_recv(struct list_head *fn, u8 is_mandatory, u8 opt,
1222 const bool local = (opt == DCCPO_CONFIRM_R);
1225 dccp_feat_print_opt(opt, feat, val, len, is_mandatory);
1300 * @mandatory: whether @opt was preceded by a Mandatory option
1301 * @opt: %DCCPO_CHANGE_L | %DCCPO_CONFIRM_R (NN only)
1315 static u8 dccp_feat_handle_nn_established(struct sock *sk, u8 mandatory, u8 opt,
1319 const bool local = (opt == DCCPO_CONFIRM_R);
1324 dccp_feat_print_opt(opt, feat, val, len, mandatory);
1344 if (opt == DCCPO_CHANGE_L) {
1356 } else if (opt == DCCPO_CONFIRM_R) {
1378 DCCP_WARN("Received illegal option %u\n", opt);
1396 * @mandatory: whether @opt was preceded by a Mandatory option
1397 * @opt: %DCCPO_CHANGE_L | %DCCPO_CHANGE_R | %DCCPO_CONFIRM_L | %DCCPO_CONFIRM_R
1399 * @val: value contents of @opt
1405 u8 mandatory, u8 opt, u8 feat, u8 *val, u8 len)
1419 switch (opt) {
1422 return dccp_feat_change_recv(fn, mandatory, opt, feat,
1426 return dccp_feat_confirm_recv(fn, mandatory, opt, feat,
1435 return dccp_feat_handle_nn_established(sk, mandatory, opt, feat,