Searched defs:ip (Results 1 - 25 of 78) sorted by relevance

1234

/vbox/src/VBox/Devices/Network/slirp/bsd/amd64/include/
H A Din_cksum.h59 in_cksum_update(struct ip *ip) argument
62 __tmpsum = (int)ntohs(ip->ip_sum) + 256;
63 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
68 #define in_cksum_update(ip) \
71 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
72 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
78 u_int in_cksum_hdr(const struct ip *ip);
/vbox/src/VBox/Devices/Network/slirp/bsd/i386/include/
H A Din_cksum.h62 in_cksum_hdr(const struct ip *ip) argument
74 : "g" (((const u_int32_t *)ip)[0]),
75 "g" (((const u_int32_t *)ip)[1]),
76 "g" (((const u_int32_t *)ip)[2]),
77 "g" (((const u_int32_t *)ip)[3]),
78 "g" (((const u_int32_t *)ip)[4])
88 in_cksum_update(struct ip *ip) argument
91 __tmpsum = (int)ntohs(ip
[all...]
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias_dummy.c48 #include <netinet/ip.h>
60 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah);
63 fingerprint(struct libalias *la, struct ip *pip, struct alias_data *ah)
89 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah)
149 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah) argument
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dmisc.c19 unsigned long ip = 0; local
27 ip = (ip << 8) | val;
30 inp->s_addr = htonl(ip);
/vbox/src/VBox/Main/src-server/os2/
H A DNetIf-os2.cpp36 int NetIfEnableStaticIpConfig(VirtualBox *pVBox, HostNetworkInterface * pIf, ULONG ip, ULONG mask) argument
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/
H A Ddt_inttab.c40 dt_inttab_t *ip; local
44 if ((ip = dt_zalloc(dtp, sizeof (dt_inttab_t))) == NULL ||
45 (ip->int_hash = dt_zalloc(dtp, sizeof (void *) * len)) == NULL) {
46 dt_free(dtp, ip);
50 ip->int_hdl = dtp;
51 ip->int_hashlen = len;
53 return (ip);
57 dt_inttab_destroy(dt_inttab_t *ip) argument
61 for (hp = ip->int_head; hp != NULL; hp = np) {
63 dt_free(ip
71 dt_inttab_insert(dt_inttab_t *ip, uint64_t value, uint_t flags) argument
105 dt_inttab_size(const dt_inttab_t *ip) argument
111 dt_inttab_write(const dt_inttab_t *ip, uint64_t *dst) argument
[all...]
/vbox/include/VBox/
H A DVBoxNetCfg-win.h92 ULONG ip; member in struct:ADAPTER_SETTINGS
97 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinEnableStaticIpConfig(IN const GUID *pGuid, IN ULONG ip, IN ULONG mask);
/vbox/src/libs/liblzf-3.4/
H A Dlzf_d.c60 u8 const *ip = (const u8 *)in_data; local
62 u8 const *const in_end = ip + in_len;
67 unsigned int ctrl = *ip++;
80 if (ip + ctrl > in_end)
88 lzf_movsb (op, ip, ctrl);
91 *op++ = *ip++;
102 if (ip >= in_end)
110 len += *ip++;
112 if (ip >= in_end)
120 ref -= *ip
[all...]
H A Dlzf_c.c114 const u8 *ip = (const u8 *)in_data; local
116 const u8 *in_end = ip + in_len;
147 *hslot++ = ip;
153 hval = FRST (ip);
154 while (ip < in_end - 2)
156 hval = NEXT (hval, ip);
158 ref = *hslot; *hslot = ip;
162 && ref < ip /* the next test will actually take care of this, but this is faster */
164 && (off = ip - ref - 1) < MAX_OFF
165 && ip
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/LzmaCompress/Sdk/C/
H A DBra86.c11 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding) argument
17 ip += 5;
59 dest = (ip + (UInt32)bufferPos) + src;
61 dest = src - (ip + (UInt32)bufferPos);
/vbox/src/VBox/Devices/Network/lwip/src/netif/ppp/
H A Dvjbsdhdr.h15 struct ip struct
H A Dvj.c144 register struct ip *ip = (struct ip *)pb->payload; local
146 register u_short hlen = getip_hl(*ip);
158 if (ip->ip_p != IPPROTO_TCP)
166 if ((ip->ip_off & htons(0x3fff)) || pb->tot_len < 40)
168 th = (struct tcphdr *)&((long *)ip)[hlen];
180 if (ip->ip_src.s_addr != cs->cs_ip.ip_src.s_addr
181 || ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr
201 if (ip
422 register struct ip *ip; local
[all...]
/vbox/src/VBox/Devices/Network/slirp/
H A Dip_input.c94 register struct ip *ip; local
101 ip = mtod(m, struct ip *);
102 Log2(("ip_dst=%RTnaipv4(len:%d) m_len = %d\n", ip->ip_dst, RT_N2H_U16(ip->ip_len), m->m_len));
116 if (m->m_len != RT_N2H_U16(ip->ip_len))
117 m->m_len = RT_N2H_U16(ip->ip_len);
122 if (mlen < sizeof(struct ip))
128 ip
262 struct ip *ip; local
637 struct ip *ip = mtod(m, struct ip *); local
[all...]
H A Dip_output.c120 register struct ip *ip; local
122 register int hlen = sizeof(struct ip);
146 ip = mtod(m, struct ip *);
147 LogFunc(("ip(src:%RTnaipv4, dst:%RTnaipv4)\n", ip->ip_src, ip->ip_dst));
151 ip->ip_v = IPVERSION;
152 ip
[all...]
H A Dip_icmp.c158 * ip here is ip header + 64bytes readed from ICMP packet
161 icmp_find_original_mbuf(PNATState pData, struct ip *ip) argument
164 struct ip *ip0;
182 LogFlowFunc(("ENTER: ip->ip_p:%d\n", ip->ip_p));
183 switch (ip->ip_p)
186 icp = (struct icmp *)((char *)ip + (ip
343 struct ip *ip; local
363 register struct ip *ip = mtod(m, struct ip *); local
554 struct ip *oip, *ip; local
688 register struct ip *ip = mtod(m, struct ip *); local
[all...]
H A Dip_icmpwin.c45 struct ip reqiph;
132 struct ip *ip = mtod(m, struct ip *); local
142 ttl = ip->ip_ttl;
145 reqsize = ip->ip_len - hlen - sizeof(struct icmp_echo);
171 reqdata = mtod(m, char *) + sizeof(struct ip) + sizeof(struct icmp_echo);
177 m_copydata(m, sizeof(struct ip) + sizeof(struct icmp_echo),
181 dst = ip->ip_dst.s_addr;
184 opts.Tos = ip
344 struct ip *ip; local
471 struct ip *ip; local
[all...]
H A Dtcp_input.c292 struct ip *ip, *save_ip; local
359 ip = mtod(m, struct ip *);
361 /* ip_input() subtracts iphlen from ip::ip_len */
362 AssertStmt((ip->ip_len + iphlen == m_length(m, NULL)), goto drop);
363 if (RT_UNLIKELY(ip->ip_len < sizeof(struct tcphdr)))
380 save_ip = (struct ip *)ohdr;
389 if (iphlen > sizeof(struct ip))
392 iphlen = sizeof(struct ip);
[all...]
H A Dudp.c82 /* m->m_data points at ip packet header
83 * m->m_len length ip packet
84 * ip->ip_len length data (IPDU)
89 register struct ip *ip; local
92 struct ip save_ip;
98 ip = mtod(m, struct ip *);
99 Log2(("%RTnaipv4 iphlen = %d\n", ip->ip_dst, iphlen));
109 if (iphlen > sizeof(struct ip))
[all...]
/vbox/src/VBox/HostDrivers/VBoxNetFlt/win/tools/
H A DVBoxNetAdpInstall.cpp63 ULONG ip, mask; local
64 hr = VBoxNetCfgWinGenHostOnlyNetworkNetworkIp(&ip, &mask);
67 /* ip returned by VBoxNetCfgWinGenHostOnlyNetworkNetworkIp is a network ip,
69 ip = ip | (1 << 24);
70 hr = VBoxNetCfgWinEnableStaticIpConfig(&guid, ip, mask);
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/
H A Dfsw_efi_lib.c98 const int *ip; local
121 ip = mon_lengths[yleap];
122 for (EfiTime->Month = 0; days >= (long) ip[EfiTime->Month]; ++(EfiTime->Month))
123 days = days - (long) ip[EfiTime->Month];
/vbox/src/VBox/Devices/Network/lwip-new/src/netif/ppp/
H A Dvj.c140 register struct ip_hdr *ip = (struct ip_hdr *)pb->payload; local
142 register u_short hlen = IPH_HL(ip);
154 if (IPH_PROTO(ip) != IP_PROTO_TCP) {
163 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || pb->tot_len < 40) {
166 th = (struct tcp_hdr *)&((long *)ip)[hlen];
178 if (!ip_addr_cmp(&ip->src, &cs->cs_ip.src)
179 || !ip_addr_cmp(&ip->dest, &cs->cs_ip.dest)
199 if (ip_addr_cmp(&ip->src, &cs->cs_ip.src)
200 && ip_addr_cmp(&ip->dest, &cs->cs_ip.dest)
258 if (((u_short *)ip)[
431 register struct ip_hdr *ip; local
[all...]
/vbox/src/VBox/Devices/Network/slirp/bsd/amd64/
H A Din_cksum.c49 #include <netinet/ip.h>
239 u_int in_cksum_hdr(const struct ip *ip) argument
241 u_int64_t sum = in_cksumdata(ip, sizeof(struct ip));
/vbox/src/VBox/Devices/Network/slirp/bsd/i386/
H A Din_cksum.c46 #include <netinet/ip.h>
247 u_int in_cksum_hdr(const struct ip *ip) argument
249 u_int64_t sum = in_cksumdata((const u_int32_t *)ip, sizeof(struct ip));
/vbox/src/VBox/Devices/Network/lwip/src/include/lwip/
H A Dstats.h90 struct stats_proto ip; member in struct:stats_
/vbox/src/VBox/Devices/Network/slirp/dnsproxy/
H A Ddnsproxy.c140 struct ip *ip; local
156 ip = mtod(m, struct ip *);
157 udp = (struct udphdr *)&ip[1]; /* ip attributes */
159 iphlen = sizeof(struct ip);
161 m->m_len += sizeof(struct ip);
165 ip->ip_src.s_addr = so->so_laddr.s_addr;
166 ip
[all...]

Completed in 82 milliseconds

1234