Lines Matching defs:opt
797 * @opt: the option header
802 * the option header @opt. Checks that the entire TLV fits inside
805 static int calipso_tlv_len(struct ipv6_opt_hdr *opt, unsigned int offset)
807 unsigned char *tlv = (unsigned char *)opt;
808 unsigned int opt_len = ipv6_optlen(opt), tlv_len;
810 if (offset < sizeof(*opt) || offset >= opt_len)
848 unsigned char *opt = (unsigned char *)hop;
858 switch (opt[offset]) {
891 * calipso_opt_insert - Inserts a CALIPSO option into an IPv6 hop opt hdr
1074 unsigned char *opt;
1081 opt = (unsigned char *)hop;
1090 switch (opt[offset]) {
1095 ret_val = calipso_opt_getattr(&opt[offset],