HomeSort by: relevance | last modified time | path
    Searched refs:oip (Results 1 - 16 of 16) sorted by relevancy

  /src/sys/ufs/lfs/
lfs_inode.c 207 * Truncate the inode oip to at most length size, freeing the
216 struct inode *oip = VTOI(ovp); local
235 KASSERT(oip->i_size == 0);
242 fs = oip->i_lfs;
245 (oip->i_size < fs->um_maxsymlinklen ||
247 lfs_dino_getblocks(fs, oip->i_din) == 0))) {
250 memset((char *)SHORTLINK(oip), 0, (u_int)oip->i_size);
251 oip->i_size = 0;
252 lfs_dino_setsize(fs, oip->i_din, 0)
    [all...]
ulfs_lookup.c 1083 * OIP is the old inode the directory previously pointed to.
1090 * The link count of OIP is decremented. Note that the link count of
1095 struct inode *oip, ino_t newinum, int newtype,
1109 oip->i_nlink--;
1110 DIP_ASSIGN(oip, nlink, oip->i_nlink);
1111 oip->i_state |= IN_CHANGE;
1119 if ((oip->i_flags & SF_SNAPSHOT) != 0 && oip->i_nlink == 0)
1120 ulfs_snapgone(oip);
    [all...]
  /src/sys/ufs/ffs/
ffs_inode.c 203 * Truncate the inode oip to at most length size, freeing the
210 struct inode *oip = VTOI(ovp); local
222 struct ufsmount *ump = oip->i_ump;
231 KASSERT(oip->i_size == 0);
246 fs = oip->i_fs;
249 datablocks = DIP(oip, blocks);
250 if (fs->fs_magic == FS_UFS2_MAGIC && oip->i_din2->di_extsize > 0) {
251 extblocks = btodb(ffs_fragroundup(fs, oip->i_din2->di_extsize));
259 (void) chkdq(oip, -extblocks, NOCRED, FORCE);
261 osize = oip->i_din2->di_extsize
    [all...]
  /src/sys/ufs/ext2fs/
ext2fs_inode.c 283 * Truncate the inode oip to at most length size, freeing the
291 struct inode *oip = VTOI(ovp); local
302 struct ufsmount *ump = oip->i_ump;
313 (ext2fs_size(oip) < ump->um_maxsymlinklen ||
314 (ump->um_maxsymlinklen == 0 && ext2fs_nblock(oip) == 0))) {
316 memset((char *)&oip->i_din.e2fs_din->e2di_shortlink, 0,
317 (u_int)ext2fs_size(oip));
318 (void)ext2fs_setsize(oip, 0);
321 if (ext2fs_size(oip) == length) {
326 fs = oip->i_e2fs
    [all...]
  /src/sys/netmpls/
mpls_ttl.c 162 struct ip *oip = mtod(n, struct ip *), *nip; local
163 unsigned oiplen = oip->ip_hl << 2;
191 if (oip->ip_off &~ htons(IP_MF|IP_DF))
193 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT &&
195 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type))
208 if (icmp_ratelimit(&oip->ip_src, type, code))
215 icmplen = uimin(ICMP_EXT_OFFSET, ntohs(oip->ip_len));
218 * Defend against mbuf chains shorter than oip->ip_len - oiplen:
307 nip->ip_src = oip->ip_src;
308 nip->ip_dst = oip->ip_dst
    [all...]
  /src/sys/net/npf/
npf_sendpkt.c 133 struct ip *oip = npc->npc_ip.v4; local
143 ip->ip_src.s_addr = oip->ip_dst.s_addr;
144 ip->ip_dst.s_addr = oip->ip_src.s_addr;
149 struct ip6_hdr *oip = npc->npc_ip.v6; local
157 memcpy(&ip6->ip6_src, &oip->ip6_dst, sizeof(struct in6_addr));
158 memcpy(&ip6->ip6_dst, &oip->ip6_src, sizeof(struct in6_addr));
  /src/external/bsd/tcpdump/dist/
print-icmp.c 327 const struct ip *oip; local
381 oip = &dp->icmp_ip;
382 hlen = IP_HL(oip) * 4;
383 ouh = (const struct udphdr *)(((const u_char *)oip) + hlen);
385 ip_proto = GET_U_1(oip->ip_p);
391 GET_IPADDR_STRING(oip->ip_dst),
398 GET_IPADDR_STRING(oip->ip_dst),
405 GET_IPADDR_STRING(oip->ip_dst),
print-icmp6.c 1033 const struct ip6_hdr *oip; local
1042 oip = (const struct ip6_hdr *)(dp + 1);
1089 ND_PRINT(" %s",GET_IP6ADDR_STRING(oip->ip6_dst));
1093 GET_IP6ADDR_STRING(oip->ip6_dst),
1094 GET_IP6ADDR_STRING(oip->ip6_src));
1097 if ((ouh = get_upperlayer(ndo, (const u_char *)oip, &prot))
1105 GET_IP6ADDR_STRING(oip->ip6_dst),
1110 GET_IP6ADDR_STRING(oip->ip6_dst),
1115 GET_IP6ADDR_STRING(oip->ip6_dst),
1135 GET_IP6ADDR_STRING(oip->ip6_dst))
    [all...]
  /src/sys/netinet/
ip_icmp.c 255 struct ip *oip = mtod(n, struct ip *), *nip; local
256 const unsigned oiphlen = oip->ip_hl << 2;
277 if (oip->ip_off &~ htons(IP_MF|IP_DF))
279 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT &&
281 struct icmp *oicp = (struct icmp *)((char *)oip + oiphlen);
291 if (icmp_ratelimit(&oip->ip_src, type, code)) {
301 ntohs(oip->ip_len) - oiphlen);
384 nip->ip_src = oip->ip_src;
385 nip->ip_dst = oip->ip_dst;
  /src/sys/ufs/ufs/
ufs_lookup.c 1247 * OIP is the old inode the directory previously pointed to.
1254 * The link count of OIP is decremented. Note that the link count of
1259 struct inode *oip, ino_t newinum, int newtype,
1273 oip->i_nlink--;
1274 DIP_ASSIGN(oip, nlink, oip->i_nlink);
1275 oip->i_flag |= IN_CHANGE;
1276 UFS_WAPBL_UPDATE(ITOV(oip), NULL, NULL, UPDATE_DIROP);
1284 if ((oip->i_flags & SF_SNAPSHOT) != 0 && oip->i_nlink == 0
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_nat.c 3576 ip_t *oip; local
3593 oip = (ip_t *)((char *)fin->fin_dp + 8);
3594 minlen = IP_HL(oip) << 2;
3616 if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN >
3622 if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN >
3631 if (fin->fin_daddr != oip->ip_src.s_addr) {
3636 p = oip->ip_p;
3642 orgicmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
3659 oip->ip_dst
3730 ip_t *oip; local
    [all...]
ip_state.c 2636 ip_t *oip; local
2653 oip = (ip_t *)((char *)ic + ICMPERR_ICMPHLEN);
2658 if (fin->fin_plen < ICMPERR_MAXPKTLEN + ((IP_HL(oip) - 5) << 2)) {
2667 if ((len <= 0) || ((IP_HL(oip) << 2) > len)) {
2668 DT2(iss_icmp_len, fr_info_t *, fin, struct ip*, oip);
2688 if ((char *)oip + len > (char *)m->b_wptr) {
2693 if ((char *)oip + len > (char *)fin->fin_ip + m->m_len) {
2718 * watch out here, as ip is in host order and oip in network
2720 * oip->ip_len.
2722 savelen = oip->ip_len
    [all...]
ip_fil_netbsd.c 842 ip_t *oip; local
856 oip = fin->fin_ip;
857 hlen = sizeof(*oip);
862 IP_HL_A(ip, sizeof(*oip) >> 2);
863 ip->ip_tos = oip->ip_tos;
fil.c 1215 ip_t *oip; local
1292 oip = (ip_t *)((char *)fin->fin_dp + ICMPERR_ICMPHLEN);
1293 if ((ntohs(oip->ip_off) & IP_OFFMASK) != 0) {
1295 DT2(ipf_fi_bad_icmp_err, fr_info_t, fin, u_int, (ntohs(oip->ip_off) & IP_OFFMASK));
1303 if (oip->ip_src.s_addr != fin->fin_daddr) {
  /src/external/bsd/ipf/dist/iplang/
iplang_y.y 677 aniphdr_t *aip, *oip = canip;
684 aip->ah_prev = oip;
696 if (oip)
697 canip->ah_data = oip->ah_data + oip->ah_len;
  /src/sys/dist/pf/net/
pf.c 1505 u_int16_t oip = *ip; local
1512 *pc = pf_cksum_fixup(*pc, oip, *ip, u);
1513 *ic = pf_cksum_fixup(*ic, oip, *ip, 0);

Completed in 69 milliseconds