/freebsd-9.3-release/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 101 typedef ufs2_daddr_t allocfcn_t(struct inode *ip, u_int cg, ufs2_daddr_t bpref, 148 ffs_alloc(ip, lbn, bpref, size, flags, cred, bnp) 149 struct inode *ip; 167 fs = ip->i_fs; 168 ump = ip->i_ump; 173 devtoname(ip->i_dev), (long)fs->fs_bsize, size, 184 error = chkdq(ip, btodb(size), cred, 0); 197 cg = ino_to_cg(fs, ip->i_number); 200 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); 203 DIP_SET(ip, i_block 503 struct inode *ip; local 730 struct inode *ip; local 972 struct inode *ip; local 1905 getinobuf(struct inode *ip, u_int cg, u_int32_t cginoblk, int gbflags) argument 2387 struct inode *ip; local 2710 struct inode *ip, *dp; local 3102 struct inode *ip; local [all...] |
/freebsd-9.3-release/usr.sbin/makefs/ffs/ |
H A D | ufs_bmap.c | 69 ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump) argument 77 lognindir = ffs(NINDIR(ip->i_fs)) - 1; 128 off = (bn >> lbc) & (NINDIR(ip->i_fs) - 1);
|
H A D | ufs_bswap.h | 49 #define UFS_IPNEEDSWAP(ip) UFS_MPNEEDSWAP(ITOV(ip)->v_mount) 53 #define UFS_IPNEEDSWAP(ip) (0)
|
/freebsd-9.3-release/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 54 #include <netinet/ip.h> 77 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl)) 162 struct ip *ip) 180 if (ip->ip_v == 4) 182 else if (ip->ip_v == 6) 336 if (hlen == 0) { /* non-ip */ 367 ip6 = (struct ip6_hdr *)ip; 160 ipfw_log(struct ip_fw *f, u_int hlen, struct ip_fw_args *args, struct mbuf *m, struct ifnet *oif, u_short offset, uint32_t tablearg, struct ip *ip) argument [all...] |
H A D | ip_fw_nat.c | 46 #include <netinet/ip.h> 80 ptr->ip = ((struct sockaddr_in *) 82 LibAliasSetAddress(ptr->lib, ptr->ip); 217 struct ip *ip; local 230 ip = mtod(mcl, struct ip *); 327 mcl->m_pkthdr.len = mcl->m_len = ntohs(ip->ip_len); 334 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 && 335 ip [all...] |
/freebsd-9.3-release/sys/dev/nxge/xgehal/ |
H A D | xgehal-device-fp.c | 698 __hal_lro_check_for_session_match(lro_t *lro, tcplro_t *tcp, iplro_t *ip) argument 702 if ((lro->ip_hdr->saddr != ip->saddr)) 706 if ((lro->ip_hdr->daddr != ip->daddr)) 722 * @ip: ip header. 727 __hal_tcp_seg_len(iplro_t *ip, tcplro_t *tcp) argument 731 ret = (xge_os_ntohs(ip->tot_len) - 732 ((ip->version_ihl & 0x0F)<<2) - 738 * __hal_ip_lro_capable: Finds whether ip is lro capable. 739 * @ip 743 __hal_ip_lro_capable(iplro_t *ip, xge_hal_dtr_info_t *ext_info) argument 779 __hal_tcp_lro_capable(iplro_t *ip, tcplro_t *tcp, lro_t *lro, int *ts_off) argument 895 __hal_lro_capable( u8 *buffer, iplro_t **ip, tcplro_t **tcp, xge_hal_dtr_info_t *ext_info) argument 974 __hal_open_lro_session(u8 *buffer, iplro_t *ip, tcplro_t *tcp, lro_t **lro, xge_hal_device_t *hldev, xge_hal_lro_desc_t *ring_lro, int slot, u32 tcp_seg_len, int ts_off) argument 1029 __hal_get_lro_session(u8 *eth_hdr, iplro_t *ip, tcplro_t *tcp, lro_t **lro, xge_hal_dtr_info_t *ext_info, xge_hal_device_t *hldev, xge_hal_lro_desc_t *ring_lro, lro_t **lro_end3 ) argument 1180 __hal_lro_under_optimal_thresh(iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1213 __hal_collapse_ip_hdr( iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1235 __hal_collapse_tcp_hdr( iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1254 __hal_append_lro(iplro_t *ip, tcplro_t **tcp, u32 *seg_len, lro_t *lro, xge_hal_device_t *hldev) argument 1299 iplro_t *ip = (iplro_t *)ip_hdr; local [all...] |
/freebsd-9.3-release/contrib/ipfilter/tools/ |
H A D | ipftest.c | 87 ip_t *ip; local 214 ip = MTOD(m, ip_t *); 219 ifp = get_unit(iface, IP_V(ip)); 221 ip->ip_off = ntohs(ip->ip_off); 222 ip->ip_len = ntohs(ip->ip_len); 224 fixv4sums(m, ip); 225 hlen = IP_HL(ip) << 2; 227 dir = !(sip.s_addr == ip [all...] |
/freebsd-9.3-release/usr.bin/netstat/ |
H A D | if.c | 536 struct iftot *iftot, *ip, *ipn, *total, *sum, *interesting; local 553 for (off = firstifnet, ip = iftot; off;) { 560 interesting = ip; 563 snprintf(ip->ift_name, sizeof(ip->ift_name), "(%s)", name); 569 SLIST_NEXT(ip, chain) = ipn; 570 ip = ipn; 607 ip = interesting; 613 show_stat("lu", 10, ifnet.if_ipackets - ip->ift_ip, 1); 614 show_stat("lu", 5, ifnet.if_ierrors - ip [all...] |
/freebsd-9.3-release/sys/fs/cd9660/ |
H A D | cd9660_vnops.c | 134 struct iso_node *ip = VTOI(vp); local 157 return (vaccess(vp->v_type, ip->inode.iso_mode, ip->inode.iso_uid, 158 ip->inode.iso_gid, ap->a_accmode, ap->a_cred, NULL)); 172 struct iso_node *ip = VTOI(vp); local 177 vnode_create_vobject(vp, ip->i_size, ap->a_td); 193 struct iso_node *ip = VTOI(vp); local 195 vap->va_fsid = dev2udev(ip->i_mnt->im_dev); 196 vap->va_fileid = ip->i_number; 198 vap->va_mode = ip 255 struct iso_node *ip; local 299 struct iso_node *ip = VTOI(vp); local 662 ISONODE *ip; local 755 struct iso_node *ip; local 822 struct iso_node *ip = VTOI(ap->a_vp); local [all...] |
/freebsd-9.3-release/sys/arm/arm/ |
H A D | in_cksum.c | 48 #include <netinet/ip.h> 145 u_int in_cksum_hdr(const struct ip *ip) argument 147 u_int64_t sum = do_cksum(ip, sizeof(struct ip));
|
/freebsd-9.3-release/contrib/ipfilter/ipsd/ |
H A D | snit.c | 33 #include <netinet/ip.h> 62 struct ip *ip; local 64 ip = (struct ip *)&tip; 65 tcp = (struct tcphdr *)(ip + 1); 66 bcopy(ep + 14, (char *)ip, sizeof(*ip)); 67 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp)); 68 if (ip [all...] |
/freebsd-9.3-release/contrib/mtree/ |
H A D | spec.c | 525 set(char *t, NODE *ip) argument 538 ip->flags |= type = parsekey(kw, &value); 548 ip->cksum = strtoul(val, &ep, 10); 553 ip->st_rdev = parsedev(val); 557 ip->st_flags = 0; 558 else if (string_to_flags(&val, &ip->st_flags, NULL) 563 ip->st_gid = (gid_t)strtoul(val, &ep, 10); 572 ip->st_gid = gid; 579 if ((ip->md5digest = strdup(md)) == NULL) 586 ip 686 unset(char *t, NODE *ip) argument [all...] |
/freebsd-9.3-release/lib/libutil/ |
H A D | login_ok.c | 177 login_hostok(login_cap_t *lc, const char *host, const char *ip, argument 183 ((host != NULL && *host != '\0') || (ip != NULL && *ip != '\0'))) { 187 if (hl != NULL && !login_str2inlist(hl, host, ip, FNM_CASEFOLD)) 192 if (hl != NULL && login_str2inlist(hl, host, ip, FNM_CASEFOLD)) 207 auth_hostok(login_cap_t *lc, const char *host, const char *ip) argument 209 return login_hostok(lc, host, ip, "host.allow", "host.deny");
|
/freebsd-9.3-release/sys/gnu/fs/xfs/FreeBSD/ |
H A D | xfs_frw.c | 66 xfs_inode_t *ip = XFS_IO_INODE(io); local 68 if (ip->i_rwtrace == NULL) 70 ktrace_enter(ip->i_rwtrace, 72 (void *)ip, 73 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), 74 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), 97 xfs_inode_t *ip = XFS_IO_INODE(io); local 99 if (ip->i_rwtrace == NULL) 101 ktrace_enter(ip->i_rwtrace, 103 (void *)ip, 199 xfs_inode_t *ip; local 840 xfs_inode_t *ip = XFS_BHVTOI(bdp); local [all...] |
H A D | xfs_super.c | 79 xfs_inode_t *ip = XFS_BHVTOI(inode_bhv); local 83 bhv_desc_init(inode_bhv, ip, xvp, &xfs_vnodeops); 97 xvp->v_vnode->v_type = IFTOVT(ip->i_d.di_mode); 107 if (ip->i_d.di_mode != 0 && unlock) 230 xfs_inode_t *ip) 237 xfs_inode_t *ip) 240 xfs_log_force(ip->i_mount, (xfs_lsn_t)0, XFS_LOG_FORCE|XFS_LOG_SYNC); 229 xfs_flush_inode( xfs_inode_t *ip) argument 236 xfs_flush_device( xfs_inode_t *ip) argument
|
/freebsd-9.3-release/sys/netinet/libalias/ |
H A D | alias_cuseeme.c | 44 #include <netinet/ip.h> 59 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip, 63 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip, 78 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah) 86 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah) 176 AliasHandleCUSeeMeOut(struct libalias *la, struct ip *pip, struct alias_link *lnk) 199 AliasHandleCUSeeMeIn(struct libalias *la, struct ip *pip, struct in_addr original_addr)
|
H A D | alias_pptp.c | 70 AliasHandlePptpOut(struct libalias *, struct ip *, struct alias_link *); 73 AliasHandlePptpIn(struct libalias *, struct ip *, struct alias_link *); 76 AliasHandlePptpGreOut(struct libalias *, struct ip *); 79 AliasHandlePptpGreIn(struct libalias *, struct ip *); 101 protohandlerin(struct libalias *la, struct ip *pip, struct alias_data *ah) 109 protohandlerout(struct libalias *la, struct ip *pip, struct alias_data *ah) 117 protohandlergrein(struct libalias *la, struct ip *pip, struct alias_data *ah) 127 protohandlergreout(struct libalias *la, struct ip *pip, struct alias_data *ah) 296 static PptpCallId AliasVerifyPptp(struct ip *, u_int16_t *); 301 struct ip *pi [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | ntp_request.c | 670 struct info_peer_list * ip; local 673 ip = (struct info_peer_list *)prepare_pkt(srcadr, inter, inpkt, 675 for (pp = peer_list; pp != NULL && ip != NULL; pp = pp->p_link) { 679 ip->addr6 = SOCK_ADDR6(&pp->srcadr); 680 ip->v6_flag = 1; 682 ip->addr = NSRCADR(&pp->srcadr); 684 ip->v6_flag = 0; 687 ip->port = NSRCPORT(&pp->srcadr); 688 ip->hmode = pp->hmode; 689 ip 808 struct info_peer * ip; local 951 struct info_peer_stats *ip; local [all...] |
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_raudio_pxy.c | 198 ip_t *ip; local 269 ip = fin->fin_ip; 270 swp = ip->ip_p; 271 swa = ip->ip_src; 272 swb = ip->ip_dst; 274 ip->ip_p = IPPROTO_UDP; 275 ip->ip_src = nat->nat_inip; 276 ip->ip_dst = nat->nat_oip; 289 slen = ip->ip_len; 290 ip [all...] |
H A D | ip_ftp_pxy.c | 155 int ippr_ftp_port(fin, ip, nat, f, dlen) 157 ip_t *ip; 175 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 262 a1 = ntohl(ip->ip_src.s_addr); 279 if ((inc + ip->ip_len) > 65535) { 281 printf("ippr_ftp_port:inc(%d) + ip->ip_len > 65535\n", 305 ip->ip_len += inc; 334 slen = ip->ip_len; 335 ip->ip_len = fin->fin_hlen + sizeof(*tcp2); 349 swip = ip 986 ip_t *ip; local [all...] |
H A D | ip_frag.c | 68 #include <netinet/ip.h> 233 ip_t *ip; local 241 ip = fin->fin_ip; 247 frag.ipfr_p = ip->ip_p; 248 idx = ip->ip_p; 249 frag.ipfr_id = ip->ip_id; 250 idx += ip->ip_id; 251 frag.ipfr_tos = ip->ip_tos; 252 frag.ipfr_src.s_addr = ip->ip_src.s_addr; 253 idx += ip 433 ip_t *ip; local [all...] |
/freebsd-9.3-release/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 31 #include <netinet/ip.h> 82 ip_t *ip = NULL; 877 ip = (ip_t *)new_header(IPPROTO_IP); 878 ip->ip_v = IPVERSION; 879 ip->ip_hl = sizeof(ip_t) >> 2; 880 ip->ip_len = sizeof(ip_t); 881 ip->ip_ttl = 63; 882 ip->ip_id = htons(id++); 892 ip->ip_p = pr->p_proto; 894 if (!(ip [all...] |
/freebsd-9.3-release/sys/netinet/ |
H A D | tcp_subr.c | 72 #include <netinet/ip.h> 422 struct ip *ip; local 424 ip = (struct ip *)ip_ptr; 425 ip->ip_v = IPVERSION; 426 ip->ip_hl = 5; 427 ip->ip_tos = inp->inp_ip_tos; 428 ip->ip_len = 0; 429 ip 487 struct ip *ip; local 1331 struct ip *ip = vip; local 1803 struct ip *ip; local 1884 struct ip *ip; local 2251 struct ip *ip; local [all...] |
/freebsd-9.3-release/sbin/dhclient/ |
H A D | dispatch.c | 193 struct interface_info *ip = l->local; local 195 if (ip == NULL || ip->dead) 224 struct interface_info *ip; local 225 ip = l->local; 228 if (ip && (l->handler != got_one || 229 !ip->dead)) 256 struct interface_info *ip = l->local; local 258 if ((result = receive_packet(ip, u.packbuf, sizeof(u), &from, 260 warning("receive_packet failed on %s: %s", ip [all...] |
/freebsd-9.3-release/sys/netipsec/ |
H A D | xform_ipip.c | 63 #include <netinet/ip.h> 155 struct ip *ipo; 172 hlen = sizeof(struct ip); 194 ipo = mtod(m, struct ip *); 209 panic("ipip_input: unknown ip version %u (outer)", v>>4); 216 if (m->m_pkthdr.len < sizeof(struct ip)) { 227 hlen = sizeof(struct ip); 263 ipo = mtod(m, struct ip *); 277 panic("ipip_input: unknown ip version %u (inner)", v>>4); 318 panic("%s: bogus ip versio [all...] |