Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/openbsd-src/bin/stty/
H A Dkey.c109 ksearch(char ***argvp, struct info *ip) in ksearch() argument
116 ip->off = 1; in ksearch()
119 ip->off = 0; in ksearch()
125 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch()
129 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch()
133 kp->f(ip); in ksearch()
138 f_all(struct info *ip) in f_all() argument
140 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_all()
144 f_cbreak(struct info *ip) in f_cbreak() argument
147 if (ip->off) in f_cbreak()
[all …]
/openbsd-src/usr.sbin/lpr/lpd/
H A Dkey.c96 ksearch(char ***argvp, struct info *ip) in ksearch() argument
103 ip->off = 1; in ksearch()
106 ip->off = 0; in ksearch()
112 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch()
116 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch()
121 kp->f(ip); in ksearch()
126 f_cbreak(struct info *ip) in f_cbreak() argument
129 if (ip->off) in f_cbreak()
130 f_sane(ip); in f_cbreak()
132 ip->t.c_iflag |= BRKINT|IXON|IMAXBEL; in f_cbreak()
[all …]
/openbsd-src/sys/lib/libsa/
H A Dnetudp.c63 struct ip *ip; in sendudp() local
67 struct ip tip; in sendudp()
82 ip = (struct ip *)uh - 1; in sendudp()
83 len += sizeof(*ip) + sizeof(*uh); in sendudp()
85 bzero(ip, sizeof(*ip) + sizeof(*uh)); in sendudp()
87 ip->ip_v = IPVERSION; /* half-char */ in sendudp()
88 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendudp()
89 ip->ip_len = htons(len); in sendudp()
90 ip->ip_p = IPPROTO_UDP; /* char */ in sendudp()
91 ip->ip_ttl = IP_TTL; /* char */ in sendudp()
[all …]
/openbsd-src/regress/sys/net/pf_fragment/
H A DMakefile138 .for ip in SRC_OUT PF_IN PF_OUT RT_IN RT_OUT ECO_IN RDR_IN RTT_IN
139 @echo Check ping ${ip}:
140 ping -n -c 1 ${${ip}}
145 .for ip in SRC_OUT PF_IN PF_OUT RT_IN RT_OUT ECO_IN RDR_IN RTT_IN
146 @echo Check ping ${ip}6:
147 ping6 -n -c 1 ${${ip}6}
156 .for ip in PF_IN PF_OUT RT_IN RT_OUT ECO_IN RDR_IN RTT_IN
157 @echo Check ping ${ip}:
158 ping -n -c 1 -s 5000 ${${ip}}
163 .for ip in PF_IN PF_OUT RT_IN RT_OUT
[all …]
/openbsd-src/usr.sbin/lpd/
H A Dlp_stty.c127 ksearch(char ***argvp, struct info *ip) in ksearch() argument
134 ip->off = 1; in ksearch()
137 ip->off = 0; in ksearch()
143 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch()
147 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch()
151 kp->f(ip); in ksearch()
156 f_cbreak(struct info *ip) in f_cbreak() argument
159 if (ip->off) in f_cbreak()
160 f_sane(ip); in f_cbreak()
162 ip->t.c_iflag |= BRKINT|IXON|IMAXBEL; in f_cbreak()
[all …]
/openbsd-src/usr.bin/lam/
H A Dlam.c115 struct openfile *ip; in getargs() local
124 ip = &input[inputsize]; in getargs()
131 ip->pad = 1; in getargs()
138 ip->align = *p++; in getargs()
140 ip->align = ' '; in getargs()
144 ip->minwidth = strtonum(p, 1, INT_MAX, in getargs()
151 ip->maxwidth = strtonum(q, 1, INT_MAX, in getargs()
157 ip->maxwidth = INT_MAX; in getargs()
161 ip->sepstring = optarg; in getargs()
167 ip->eol = optarg[0]; in getargs()
[all …]
/openbsd-src/usr.sbin/tcpdump/
H A Dprint-ip.c151 const struct ip *ip; in igmp_print() local
153 ip = (const struct ip *)bp2; in igmp_print()
155 ipaddr_string(&ip->ip_src), in igmp_print()
156 ipaddr_string(&ip->ip_dst)); in igmp_print()
320 const struct ip *ip; in ip_print() local
327 ip = (const struct ip *)bp; in ip_print()
334 if ((intptr_t)ip & (sizeof(u_int32_t)-1)) { in ip_print()
346 memmove((char *)abuf, (char *)ip, min(length, clen)); in ip_print()
349 ip = (struct ip *)abuf; in ip_print()
357 TCHECK(*ip); in ip_print()
[all …]
H A Dprint-sl.c52 static void sliplink_print(const u_char *, const struct ip *, u_int);
53 static void compressed_sl_print(const u_char *, const struct ip *, u_int, int);
76 const struct ip *ip; in sl_if_print() local
94 ip = (struct ip *)(p + SLIP_HDRLEN); in sl_if_print()
97 sliplink_print(p, ip, length); in sl_if_print()
99 switch (ip->ip_v) { in sl_if_print()
101 ip_print((u_char *)ip, length); in sl_if_print()
104 ip6_print((u_char *)ip, length); in sl_if_print()
107 printf ("ip v%d", ip->ip_v); in sl_if_print()
111 default_print((u_char *)ip, caplen - SLIP_HDRLEN); in sl_if_print()
[all …]
/openbsd-src/sys/ufs/ufs/
H A Dufs_vnops.c95 struct inode *ip; in ufs_itimes() local
98 ip = VTOI(vp); in ufs_itimes()
99 if ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) == 0) in ufs_itimes()
106 if (IS_EXT2_VNODE(ip->i_vnode)) { in ufs_itimes()
107 EXT2FS_ITIMES(ip); in ufs_itimes()
113 ip->i_flag |= IN_LAZYMOD; in ufs_itimes()
115 ip->i_flag |= IN_MODIFIED; in ufs_itimes()
118 if (ip->i_flag & IN_ACCESS) { in ufs_itimes()
119 DIP_ASSIGN(ip, atime, ts.tv_sec); in ufs_itimes()
120 DIP_ASSIGN(ip, atimense in ufs_itimes()
163 struct inode *ip; ufs_mknod() local
201 struct inode *ip = VTOI(ap->a_vp); ufs_open() local
237 struct inode *ip = VTOI(vp); ufs_access() local
289 struct inode *ip = VTOI(vp); ufs_getattr() local
335 struct inode *ip = VTOI(vp); ufs_setattr() local
458 struct inode *ip = VTOI(vp); ufs_chmod() local
486 struct inode *ip = VTOI(vp); ufs_chown() local
583 struct inode *ip; ufs_remove() local
611 struct inode *ip; ufs_link() local
691 struct inode *ip, *xp, *dp; ufs_rename() local
1089 struct inode *ip, *dp; ufs_mkdir() local
1215 struct inode *ip, *dp; ufs_rmdir() local
1290 struct inode *ip; ufs_symlink() local
1425 struct inode *ip = VTOI(vp); ufs_readlink() local
1480 struct inode *ip; ufs_strategy() local
1523 struct inode *ip = VTOI(vp); ufs_print() local
1701 struct inode *ip = VTOI(ap->a_vp); ufs_advlock() local
1714 struct inode *ip, *pdir; ufs_makeinode() local
1848 struct inode *ip = VTOI(vp); filt_ufsread() local
[all...]
H A Dufs_inode.c64 struct inode *ip = VTOI(vp); in ufs_inactive() local
77 if (ip->i_din1 == NULL || DIP(ip, mode) == 0) in ufs_inactive()
80 if (DIP(ip, nlink) <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { in ufs_inactive()
81 if (getinoquota(ip) == 0) in ufs_inactive()
82 (void)ufs_quota_free_inode(ip, NOCRED); in ufs_inactive()
84 error = UFS_TRUNCATE(ip, (off_t)0, 0, NOCRED); in ufs_inactive()
86 DIP_ASSIGN(ip, rdev, 0); in ufs_inactive()
87 mode = DIP(ip, mode); in ufs_inactive()
88 DIP_ASSIGN(ip, mode, 0); in ufs_inactive()
89 ip->i_flag |= IN_CHANGE | IN_UPDATE; in ufs_inactive()
[all …]
H A Dinode.h145 #define UFS_TRUNCATE(ip, off, flags, cred) \ argument
146 ((ip)->i_vtbl->iv_truncate)((ip), (off), (flags), (cred))
148 #define UFS_UPDATE(ip, sync) \ argument
149 ((ip)->i_vtbl->iv_update)((ip), (sync))
157 #define UFS_BUF_ALLOC(ip, startoffset, size, cred, flags, bpp) \ argument
158 ((ip)->i_vtbl->iv_buf_alloc)((ip), (startoffset), (size), (cred), \
161 #define UFS_BUFATOFF(ip, offset, res, bpp) \ argument
162 ((ip)->i_vtbl->iv_bufatoff)((ip), (offset), (res), (bpp))
268 #define DIP(ip, field) \ argument
269 (((ip)->i_ump->um_fstype == UM_UFS1) ? \
[all …]
H A Dufs_ihash.c89 struct inode *ip; in ufs_ihashget()
94 LIST_FOREACH(ip, ipp, i_hash) { in ufs_ihashget()
95 if (inum == ip->i_number && dev == ip->i_dev) { in ufs_ihashget()
96 vp = ITOV(ip); in ufs_ihashget()
112 if (VTOI(vp) != ip || in ufs_ihashins()
120 IS_EXT2_VNODE(vp) ? ip->i_e2fs_nlink <= 0 : in ufs_ihashins()
122 DIP(ip, nlink) <= 0) && in ufs_ihashins()
147 ufs_ihashins(struct inode *ip) in ufs_ihashrem()
151 dev_t dev = ip in ufs_ihashrem()
86 struct inode *ip; ufs_ihashget() local
108 ufs_ihashins(struct inode * ip) ufs_ihashins() argument
140 ufs_ihashrem(struct inode * ip) ufs_ihashrem() argument
[all...]
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Dsoc15_common.h28 #define GET_INST(ip, inst) \ argument
30 adev->ip_map.logical_to_dev_inst(adev, ip##_HWIP, inst) : inst)
31 #define GET_MASK(ip, mask) \ argument
33 adev->ip_map.logical_to_dev_mask(adev, ip##_HWIP, mask) : mask)
36 #define SOC15_REG_OFFSET(ip, inst, reg) (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) argument
37 #define SOC15_REG_OFFSET1(ip, inst, reg, offset) \ argument
38 (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + (reg)+(offset))
50 #define WREG32_FIELD15(ip, idx, reg, field, val) \ argument
51 __WREG32_SOC15_RLC__(adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \
53 adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \
[all …]
/openbsd-src/regress/sys/net/pf_forward/
H A DMakefile171 .for ip in SRC_OUT PF_IN PF_OUT RT_IN RT_OUT ECO_IN ECO_OUT RDR_IN RDR_OUT\
173 REGRESS_TARGETS += run-ping-${inet}-${ip}
174 run-ping-${inet}-${ip}: stamp-pfctl
175 @echo Check ping ${ip}${inet:S/inet//}:
176 .if "RPT_IN" == ${ip} || "RPT_OUT" == ${ip}
177 ping${inet:S/inet//} -n -c 1 -I ${${ip}${inet:S/inet//}}\
180 ping${inet:S/inet//} -n -c 1 ${${ip}${inet:S/inet//}}
184 .for ip in ECO_IN ECO_OUT RDR_IN RDR_OUT AF_IN RTT_IN RTT_OUT RPT_IN RPT_OUT
192 REGRESS_TARGETS += run-ping-mtu-1400-${inet}-${ip}
193 run-ping-mtu-1400-${inet}-${ip}: stamp-pfctl
[all …]
/openbsd-src/sys/ufs/ext2fs/
H A Dext2fs_vnops.c97 struct inode *ip; in ext2fs_mknod() local
104 ip = VTOI(*vpp); in ext2fs_mknod()
105 ip->i_flag |= IN_ACCESS | IN_CHANGE | IN_UPDATE; in ext2fs_mknod()
111 ip->i_e2din->e2di_rdev = htole32(vap->va_rdev); in ext2fs_mknod()
149 struct inode *ip = VTOI(vp); in ext2fs_access() local
153 if ((mode & VWRITE) && (ip->i_e2fs_flags & EXT2_IMMUTABLE)) in ext2fs_access()
156 return (vaccess(vp->v_type, ip->i_e2fs_mode, ip->i_e2fs_uid, in ext2fs_access()
157 ip->i_e2fs_gid, mode, ap->a_cred)); in ext2fs_access()
165 struct inode *ip = VTOI(vp); in ext2fs_getattr() local
168 EXT2FS_ITIMES(ip); in ext2fs_getattr()
[all …]
H A Dext2fs_inode.c62 ext2fs_size(struct inode *ip) in ext2fs_size() argument
64 u_int64_t size = ip->i_e2fs_size; in ext2fs_size()
66 if ((ip->i_e2fs_mode & IFMT) == IFREG) in ext2fs_size()
67 size |= (u_int64_t)ip->i_e2fs_size_hi << 32; in ext2fs_size()
73 ext2fs_setsize(struct inode *ip, u_int64_t size) in ext2fs_setsize() argument
75 struct m_ext2fs *fs = ip->i_e2fs; in ext2fs_setsize()
79 if ((ip->i_e2fs_mode & IFMT) == IFREG || ip->i_e2fs_mode == 0) in ext2fs_setsize()
80 ip->i_e2fs_size_hi = size >> 32; in ext2fs_setsize()
82 ip->i_e2fs_size = size; in ext2fs_setsize()
106 struct inode *ip = VTOI(vp); in ext2fs_inactive() local
[all …]
/openbsd-src/usr.sbin/vmd/
H A Dpacket.c128 struct ip ip; in assemble_udp_ip_header() local
131 if (buflen < offset + sizeof(ip) + sizeof(udp)) in assemble_udp_ip_header()
134 ip.ip_v = 4; in assemble_udp_ip_header()
135 ip.ip_hl = 5; in assemble_udp_ip_header()
136 ip.ip_tos = IPTOS_LOWDELAY; in assemble_udp_ip_header()
137 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + datalen); in assemble_udp_ip_header()
138 ip.ip_id = 0; in assemble_udp_ip_header()
139 ip.ip_off = 0; in assemble_udp_ip_header()
140 ip.ip_ttl = 16; in assemble_udp_ip_header()
141 ip.ip_p = IPPROTO_UDP; in assemble_udp_ip_header()
[all …]
/openbsd-src/usr.sbin/makefs/ffs/
H A Dffs_balloc.c60 ffs_balloc(struct inode *ip, off_t offset, int bufsize, struct mkfsbuf **bpp) in ffs_balloc() argument
62 if (ip->i_fs->fs_magic == FS_UFS2_MAGIC) in ffs_balloc()
63 return ffs_balloc_ufs2(ip, offset, bufsize, bpp); in ffs_balloc()
65 return ffs_balloc_ufs1(ip, offset, bufsize, bpp); in ffs_balloc()
69 ffs_balloc_ufs1(struct inode *ip, off_t offset, int bufsize, struct mkfsbuf **bpp) in ffs_balloc_ufs1() argument
75 struct fs *fs = ip->i_fs; in ffs_balloc_ufs1()
99 lastlbn = lblkno(fs, ip->i_ffs1_size); in ffs_balloc_ufs1()
102 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
114 nb = ip->i_ffs1_db[lbn]; in ffs_balloc_ufs1()
115 if (nb != 0 && ip->i_ffs1_size >= lblktosize(fs, lbn + 1)) { in ffs_balloc_ufs1()
[all …]
/openbsd-src/usr.sbin/dhcpd/
H A Dpacket.c119 struct ip ip; in assemble_udp_ip_header() local
122 ip.ip_v = 4; in assemble_udp_ip_header()
123 ip.ip_hl = 5; in assemble_udp_ip_header()
124 ip.ip_tos = IPTOS_LOWDELAY; in assemble_udp_ip_header()
125 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len); in assemble_udp_ip_header()
126 ip.ip_id = 0; in assemble_udp_ip_header()
127 ip.ip_off = 0; in assemble_udp_ip_header()
128 ip.ip_ttl = 16; in assemble_udp_ip_header()
129 ip.ip_p = IPPROTO_UDP; in assemble_udp_ip_header()
130 ip.ip_sum = 0; in assemble_udp_ip_header()
[all …]
/openbsd-src/usr.sbin/dhcrelay/
H A Dpacket.c130 struct ip ip; in assemble_udp_ip_header() local
133 if (buflen < offset + sizeof(ip) + sizeof(udp)) in assemble_udp_ip_header()
136 ip.ip_v = 4; in assemble_udp_ip_header()
137 ip.ip_hl = 5; in assemble_udp_ip_header()
138 ip.ip_tos = IPTOS_LOWDELAY; in assemble_udp_ip_header()
139 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + datalen); in assemble_udp_ip_header()
140 ip.ip_id = 0; in assemble_udp_ip_header()
141 ip.ip_off = 0; in assemble_udp_ip_header()
142 ip.ip_ttl = 16; in assemble_udp_ip_header()
143 ip.ip_p = IPPROTO_UDP; in assemble_udp_ip_header()
[all …]
/openbsd-src/sys/ufs/ffs/
H A Dffs_balloc.c70 ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred, in ffs1_balloc() argument
84 vp = ITOV(ip); in ffs1_balloc()
85 fs = ip->i_fs; in ffs1_balloc()
101 nb = lblkno(fs, ip->i_ffs1_size); in ffs1_balloc()
103 osize = blksize(fs, ip, nb); in ffs1_balloc()
105 error = ffs_realloccg(ip, nb, in ffs1_balloc()
106 ffs1_blkpref(ip, nb, (int)nb, &ip->i_ffs1_db[0]), in ffs1_balloc()
111 ip->i_ffs1_size = lblktosize(fs, nb + 1); in ffs1_balloc()
112 uvm_vnp_setsize(vp, ip->i_ffs1_size); in ffs1_balloc()
113 ip->i_ffs1_db[nb] = newb; in ffs1_balloc()
[all …]
/openbsd-src/usr.sbin/mtree/
H A Dspec.c168 set(char *t, NODE *ip) in set() argument
179 ip->flags |= type = parsekey(kw, &value); in set()
184 ip->cksum = strtoul(val, &ep, 10); in set()
189 ip->md5digest = strdup(val); in set()
190 if (!ip->md5digest) in set()
195 ip->file_flags = 0; in set()
200 ip->file_flags = fset; in set()
203 ip->st_gid = strtoul(val, &ep, 10); in set()
208 if (gid_from_group(val, &ip->st_gid) == -1) in set()
217 ip->st_mode = getmode(m, 0); in set()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/
H A Dxopen-1.c11 foo (int i, unsigned int u, wint_t lc, wchar_t *ls, int *ip, double d, in foo() argument
90 scanf ("%1$d", ip); in foo()
95 scanf ("%4$ld%7$ld%5$d%6$d%3$d%1$d%2$d", ip, ip, ip, lp, ip, ip, lp); in foo()
101 scanf ("%1$d%d", ip, ip); /* { dg-warning "missing" "mixing $ and non-$ formats" } */ in foo()
102 scanf ("%*f%%%1$d%%%2$d", ip, ip); in foo()
112 scanf ("%3$d%1$d", ip, ip, ip); /* { dg-bogus "before used" "unused $ scanf pointer operand" } */ in foo()
115 …scanf ("%3$d%1$d", ip, ip, ip, i); /* { dg-bogus "before used" "unused $ scanf pointer operand" } … in foo()
117 …scanf ("%3$d%1$d", ip, i, ip); /* { dg-warning "before used" "unused $ scanf non-pointer operand" … in foo()
122 scanf ("%2$*d%1$d", ip, ip); /* { dg-warning "operand" "operand number with suppression" } */ in foo()
124 scanf ("%1$d%1$d", ip); /* { dg-warning "more than once" "multiple use of scanf argument" } */ in foo()
/openbsd-src/sys/arch/arm/arm/
H A Dcpufunc_asm_armv7.S103 ldr ip, .Larmv7_icache_line_size
104 ldr ip, [ip]
105 sub r3, ip, #1
112 add r0, r0, ip
113 subs r1, r1, ip
132 ldr ip, .Larmv7_dcache_line_size
133 ldr ip, [ip]
134 sub r3, ip, #1
140 add r0, r0, ip
141 subs r1, r1, ip
[all …]
/openbsd-src/usr.sbin/rpki-client/
H A Dip.c1 /* $OpenBSD: ip.c,v 1.34 2024/11/12 09:23:07 tb Exp $ */
99 * Given a newly-parsed IP address or range "ip", make sure that "ip"
105 ip_addr_check_overlap(const struct cert_ip *ip, const char *fn, in ip_addr_check_overlap() argument
108 size_t i, sz = ip->afi == AFI_IPV4 ? 4 : 16; in ip_addr_check_overlap()
132 if ((inherit_v4 && ip->afi == AFI_IPV4) || in ip_addr_check_overlap()
133 (inherit_v6 && ip->afi == AFI_IPV6) || in ip_addr_check_overlap()
134 (has_v4 && ip->afi == AFI_IPV4 && in ip_addr_check_overlap()
135 ip->type == CERT_IP_INHERIT) || in ip_addr_check_overlap()
136 (has_v6 && ip in ip_addr_check_overlap()
253 struct cert_ip ip; ip_addr_range_print() local
345 ip_warn(const char * fn,const char * msg,const struct cert_ip * ip) ip_warn() argument
[all...]

12345678910>>...28