Lines Matching refs:inp

120     struct ip_moptions *imo, struct inpcb *inp)
144 if (inp != NULL) {
145 INP_LOCK_ASSERT(inp);
146 M_SETFIB(m, inp->inp_inc.inc_fibnum);
147 if (inp->inp_flowtype != M_HASHTYPE_NONE) {
148 m->m_pkthdr.flowid = inp->inp_flowid;
280 inp ? inp->inp_inc.inc_fibnum : M_GETFIB(m));
283 inp ? inp->inp_inc.inc_fibnum : M_GETFIB(m));
485 switch(ip_ipsec_output(&m, inp, &flags, &error)) {
513 error = pfil_run_hooks(&V_inet_pfil_hook, &m, ifp, PFIL_OUT, inp);
904 struct inpcb *inp = sotoinpcb(so);
915 INP_WLOCK(inp);
917 inp->inp_flags2 |= INP_REUSEADDR;
919 inp->inp_flags2 &= ~INP_REUSEADDR;
920 INP_WUNLOCK(inp);
924 INP_WLOCK(inp);
926 inp->inp_flags2 |= INP_REUSEPORT;
928 inp->inp_flags2 &= ~INP_REUSEPORT;
929 INP_WUNLOCK(inp);
933 INP_WLOCK(inp);
934 inp->inp_inc.inc_fibnum = so->so_fibnum;
935 INP_WUNLOCK(inp);
970 INP_WLOCK(inp);
971 error = ip_pcbopts(inp, sopt->sopt_name, m);
972 INP_WUNLOCK(inp);
1003 inp->inp_ip_tos = optval;
1007 inp->inp_ip_ttl = optval;
1012 inp->inp_ip_minttl = optval;
1018 INP_WLOCK(inp); \
1020 inp->inp_flags |= bit; \
1022 inp->inp_flags &= ~bit; \
1023 INP_WUNLOCK(inp); \
1087 error = inp_setmoptions(inp, sopt);
1096 INP_WLOCK(inp);
1099 inp->inp_flags &= ~(INP_LOWPORT);
1100 inp->inp_flags &= ~(INP_HIGHPORT);
1104 inp->inp_flags &= ~(INP_LOWPORT);
1105 inp->inp_flags |= INP_HIGHPORT;
1109 inp->inp_flags &= ~(INP_HIGHPORT);
1110 inp->inp_flags |= INP_LOWPORT;
1117 INP_WUNLOCK(inp);
1131 error = ipsec_set_policy(inp, sopt->sopt_name, req,
1149 if (inp->inp_options)
1151 mtod(inp->inp_options,
1153 inp->inp_options->m_len);
1175 optval = inp->inp_ip_tos;
1179 optval = inp->inp_ip_ttl;
1183 optval = inp->inp_ip_minttl;
1186 #define OPTBIT(bit) (inp->inp_flags & bit ? 1 : 0)
1209 if (inp->inp_flags & INP_HIGHPORT)
1211 else if (inp->inp_flags & INP_LOWPORT)
1246 error = inp_getmoptions(inp, sopt);