Lines Matching defs:inp
1942 struct inpcb *inp = sotoinpcb(so);
1974 return (ip_pcbopts(sopt->sopt_name, &inp->inp_options,
1995 inp->inp_ip_tos = optval;
1999 inp->inp_ip_ttl = optval;
2003 inp->inp_flags |= bit; \
2005 inp->inp_flags &= ~bit;
2049 if (!(inp->inp_vflag & INP_IPV4)) {
2095 ip_bindif(inp, ifscope);
2105 error = ip_setmoptions(sopt, &inp->inp_moptions);
2116 inp->inp_flags &= ~(INP_LOWPORT);
2117 inp->inp_flags &= ~(INP_HIGHPORT);
2121 inp->inp_flags &= ~(INP_LOWPORT);
2122 inp->inp_flags |= INP_HIGHPORT;
2126 inp->inp_flags &= ~(INP_HIGHPORT);
2127 inp->inp_flags |= INP_LOWPORT;
2160 error = ipsec4_set_policy(inp, optname, req, len, priv);
2203 if (!(inp->inp_vflag & INP_IPV4)) {
2214 ip_bindif(inp, optval);
2227 if (inp->inp_options)
2229 mtod(inp->inp_options,
2231 inp->inp_options->m_len);
2250 optval = inp->inp_ip_tos;
2254 optval = inp->inp_ip_ttl;
2257 #define OPTBIT(bit) (inp->inp_flags & bit ? 1 : 0)
2280 if (inp->inp_flags & INP_HIGHPORT)
2282 else if (inp->inp_flags & INP_LOWPORT)
2303 error = ip_getmoptions(sopt, inp->inp_moptions);
2336 if (inp->inp_flags & INP_BOUND_IF)
2337 optval = inp->inp_boundif;
3174 ip_bindif(struct inpcb *inp, unsigned int ifscope)
3185 inp->inp_boundif = ifscope;
3186 if (inp->inp_boundif == IFSCOPE_NONE)
3187 inp->inp_flags &= ~INP_BOUND_IF;
3189 inp->inp_flags |= INP_BOUND_IF;
3193 if (inp->inp_route.ro_rt != NULL) {
3194 rtfree_locked(inp->inp_route.ro_rt);
3195 inp->inp_route.ro_rt = NULL;