Lines Matching refs:opt
52 static int dummy_print(const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print()
57 static int mp_capable_print(const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print() argument
59 struct mp_capable *mpc = (struct mp_capable *) opt; in mp_capable_print()
79 static int mp_join_print(const u_char *opt, u_int opt_len, u_char flags) in mp_join_print() argument
81 struct mp_join *mpj = (struct mp_join *) opt; in mp_join_print()
145 static int mp_dss_print(const u_char *opt, u_int opt_len, u_char flags) in mp_dss_print() argument
147 struct mp_dss *mdss = (struct mp_dss *) opt; in mp_dss_print()
156 opt += 4; in mp_dss_print()
160 printf("%" PRIu64, EXTRACT_64BITS(opt)); in mp_dss_print()
161 opt += 8; in mp_dss_print()
163 printf("%u", EXTRACT_32BITS(opt)); in mp_dss_print()
164 opt += 4; in mp_dss_print()
171 printf("%" PRIu64, EXTRACT_64BITS(opt)); in mp_dss_print()
172 opt += 8; in mp_dss_print()
174 printf("%u", EXTRACT_32BITS(opt)); in mp_dss_print()
175 opt += 4; in mp_dss_print()
177 printf(" subseq %u", EXTRACT_32BITS(opt)); in mp_dss_print()
178 opt += 4; in mp_dss_print()
179 printf(" len %u", EXTRACT_16BITS(opt)); in mp_dss_print()
180 opt += 2; in mp_dss_print()
183 printf(" csum 0x%x", EXTRACT_16BITS(opt)); in mp_dss_print()
188 static int add_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_) in add_addr_print() argument
190 struct mp_add_addr *add_addr = (struct mp_add_addr *) opt; in add_addr_print()
218 static int remove_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_) in remove_addr_print() argument
220 struct mp_remove_addr *remove_addr = (struct mp_remove_addr *) opt; in remove_addr_print()
233 static int mp_prio_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_prio_print() argument
235 struct mp_prio *mpp = (struct mp_prio *) opt; in mp_prio_print()
250 static int mp_fail_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fail_print() argument
255 printf(" seq %" PRIu64, EXTRACT_64BITS(opt + 4)); in mp_fail_print()
259 static int mp_fast_close_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fast_close_print() argument
264 printf(" key 0x%" PRIx64, EXTRACT_64BITS(opt + 4)); in mp_fast_close_print()
285 struct mptcp_option *opt; in mptcp_print() local
291 opt = (struct mptcp_option *) cp; in mptcp_print()
292 subtype = min(MPTCP_OPT_SUBTYPE(opt->sub_etc), MPTCP_SUB_FCLOSE + 1); in mptcp_print()