D | test-inet6_opt.c | 15 socklen_t el; in encode_inet6_opt() local 44 el = cl; in encode_inet6_opt() 46 eb = malloc (el + 8); in encode_inet6_opt() 53 memcpy (eb + el, "deadbeef", 8); in encode_inet6_opt() 55 cl = inet6_opt_init (eb, el); in encode_inet6_opt() 58 cl = inet6_opt_append (eb, el, cl, OPT_X, 12, 8, &db); in encode_inet6_opt() 65 cl = inet6_opt_append (eb, el, cl, OPT_Y, 7, 4, &db); in encode_inet6_opt() 74 cl = inet6_opt_append (eb, el, cl, OPT_Z, 7, 1, &db); in encode_inet6_opt() 78 cl = inet6_opt_finish (eb, el, cl); in encode_inet6_opt() 81 if (memcmp (eb + el, "deadbeef", 8) != 0) in encode_inet6_opt() [all …]
|