Home
last modified time | relevance | path

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

12

/busybox-1.35.0/archival/libarchive/
Dlzo1x_d.c37 register const uint8_t* ip; local
71 ip = in;
73 if (*ip > 17) {
74 t = *ip++ - 17;
78 do *op++ = *ip++; while (--t > 0);
83 t = *ip++;
89 while (*ip == 0) {
91 ip++;
95 t += 15 + *ip++;
103 if (PTR_ALIGNED2_4(op, ip))
[all …]
Dlzo1x_c.c35 register const uint8_t* ip; in do_compress() local
43 ip = in; in do_compress()
44 ii = ip; in do_compress()
46 ip += 4; in do_compress()
53 D_INDEX1(dindex,ip); in do_compress()
55 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
58 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
60 D_INDEX2(dindex,ip); in do_compress()
63 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
65 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
[all …]
Dliblzo.h58 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \ argument
60 m_pos = ip - (unsigned)(ip - m_pos), \
62 || (m_off = (unsigned)(ip - m_pos)) <= 0 \
76 # define TEST_IP (ip < ip_end)
78 if ((unsigned)(ip_end - ip) < (unsigned)(x)) goto input_overrun
Dlzo1x_9x.c68 const uint8_t *ip; member
76 #define getbyte(c) ((c).ip < (c).in_end ? *((c).ip)++ : (-1))
126 unsigned ip; /* input pointer (lookahead) */ member
169 s->ip = 0; in swd_init()
170 s->bp = s->ip; in swd_init()
171 s->first_rp = s->ip; in swd_init()
173 assert(s->ip + SWD_F <= B_SIZE); in swd_init()
174 s->look = (unsigned) (s->c->in_end - s->c->ip); in swd_init()
178 memcpy(&s->b[s->ip], s->c->ip, s->look); in swd_init()
179 s->c->ip += s->look; in swd_init()
[all …]
/busybox-1.35.0/examples/
Dzcip.script18 if [ "x$ip" = x ]
23 if [ "x$ip" != x -a -w "$ip.$interface" ]
25 echo $ip > "$ip.$interface"
27 exec ip address add dev $interface \
28 scope link local "$ip/16" broadcast +
31 if [ x$ip = x ]
35 exec ip address del dev $interface local $ip
/busybox-1.35.0/examples/var_service/zcip_if/
Dconvert2ipconf17 test "$ip" || exit 1
22 test "$ip" && echo "ip[\$cfg]='$ip'"
23 test "$ip" && echo "ipmask[\$cfg]='$ip/16'"
/busybox-1.35.0/examples/var_service/dhcp_if/
Dconvert2ipconf27 test "$ip" || exit 1
32 case "$ip" in
56 test "$ip" && echo "ip[\$cfg]='$ip'"
57 test "$ip" && test "$mask" \
58 && echo "ipmask[\$cfg]='$ip/$mask'"
Dconvert2ntpconf27 test "$ip" || exit 1
/busybox-1.35.0/examples/udhcp/
Dsimple.script9 if command -v ip >/dev/null; then
20 if command -v ip >/dev/null; then
21 ip -4 addr flush dev $interface
22 ip link set dev $interface up
29 echo "Setting IP address $ip on $interface"
30 if command -v ip >/dev/null; then
31 ip addr add $ip$NETMASK $BROADCAST dev $interface
33 ifconfig $interface $ip $NETMASK $BROADCAST
50 ip route add $i dev $interface
Dsample.bound9 ifconfig $interface $ip $BROADCAST $NETMASK
26 ip route add $i dev $interface
Dsample.renew9 ifconfig $interface $ip $BROADCAST $NETMASK
26 ip route add $i dev $interface
/busybox-1.35.0/networking/
Dtcpudp_perhost.c21 unsigned FAST_FUNC ipsvd_perhost_add(struct hcc *cc, char *ip, unsigned maxconn, struct hcc **hccpp) in ipsvd_perhost_add() argument
28 if (!cc[i].ip) { in ipsvd_perhost_add()
32 if (strcmp(cc[i].ip, ip) == 0) { in ipsvd_perhost_add()
39 cc[freepos].ip = ip; in ipsvd_perhost_add()
50 free(cc[i].ip); in ipsvd_perhost_remove()
51 cc[i].ip = NULL; in ipsvd_perhost_remove()
Dtcpudp_perhost.h13 char *ip; member
25 unsigned FAST_FUNC ipsvd_perhost_add(struct hcc *cc, char *ip, unsigned maxconn, struct hcc **hccpp…
Dtraceroute.c396 struct ip *outip;
655 const struct ip *ip; in packet4_ok() local
661 ip = (struct ip *) recv_pkt; in packet4_ok()
663 hlen = ip->ip_hl << 2; in packet4_ok()
696 const struct ip *hip; in packet4_ok()
853 struct ip *ip4packet = (struct ip*)recv_pkt; in print()
924 packlen = sizeof(struct ip) in traceroute_init()
928 packlen = sizeof(struct ip) in traceroute_init()
1174 struct ip *ip = (struct ip *)recv_pkt; in common_traceroute_main() local
1175 printf(" (%d)", ip->ip_ttl); in common_traceroute_main()
[all …]
Darp.c356 arp_disp(const char *name, char *ip, int type, int arp_flags, in arp_disp() argument
385 printf("%s (%s) at ", name, ip); in arp_disp()
414 char ip[128]; in arp_show() local
440 ip, &type, &flags, hwa, mask, dev); in arp_show()
450 if (host && strcmp(ip, host) != 0) in arp_show()
461 if (ap->input(ip, &sa) < 0) in arp_show()
462 hostname = ip; in arp_show()
465 if (strcmp(hostname, ip) == 0) in arp_show()
469 arp_disp(hostname, ip, type, flags, hwa, mask, dev); in arp_show()
Ddnsd.c83 uint32_t ip; member
127 struct in_addr ip; in parse_conf_file() local
130 if (inet_aton(token[1], &ip) == 0) { in parse_conf_file()
147 m->ip = ip.s_addr; /* in network order */ in parse_conf_file()
148 v32 = ntohl(m->ip); in parse_conf_file()
196 return (char *)&d->ip; in table_lookup()
198 fprintf(stderr, "Found IP:%x\n", (int)d->ip); in table_lookup()
/busybox-1.35.0/archival/
Dlzop.c113 static void copy2(uint8_t* ip, const uint8_t* m_pos, unsigned off) in copy2() argument
115 ip[0] = m_pos[0]; in copy2()
117 ip[1] = m_pos[0]; in copy2()
119 ip[1] = m_pos[1]; in copy2()
122 static void copy3(uint8_t* ip, const uint8_t* m_pos, unsigned off) in copy3() argument
124 ip[0] = m_pos[0]; in copy3()
126 ip[2] = ip[1] = m_pos[0]; in copy3()
129 ip[1] = m_pos[1]; in copy3()
130 ip[2] = m_pos[0]; in copy3()
133 ip[1] = m_pos[1]; in copy3()
[all …]
/busybox-1.35.0/examples/var_service/fw/
Drun93 doit ip a f dev "$iface"
94 doit ip r f dev "$iface" root 0/0
97 doit ip a f dev lo
99 doit ip a f dev "${if[$i]}"
100 doit ip r f dev "${if[$i]}" root 0/0
105 doit ip a a dev lo 127.0.0.1/8 scope host
106 doit ip a a dev lo ::1/128 scope host
109 doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd +
110 doit ip l set dev "${if[$i]}" up
125 doit ip r a "${net[$i]}" via "${gw[$i]}"
[all …]
/busybox-1.35.0/klibc-utils/
Dipconfig.c.txt64 parse_addr(const char *ip)
67 if (inet_aton(ip, &in) == 0)
68 bb_error_msg_and_die("bad IP address '%s'", ip);
98 // "ip=PROTO" - also implies -o
101 // "[ip=/nfsaddrs=]IP:SERVER_IP:ROUTER:NETMASK:HOSTNAME:IFACE:METHOD"
110 add_device(llist_t **iface_list, char *ip)
117 if (strncmp("ip=", ip, 3) == 0
118 || strncmp("nfsaddrs=", ip, 9) == 0
122 ip = strchr(ip, '=') + 1;
123 fixed = parse_method(ip);
[all …]
/busybox-1.35.0/networking/udhcp/
Dpacket.c159 packet.ip.protocol = IPPROTO_UDP; in udhcp_send_raw_packet()
160 packet.ip.saddr = source_nip; in udhcp_send_raw_packet()
161 packet.ip.daddr = dest_nip; in udhcp_send_raw_packet()
167 packet.ip.tot_len = packet.udp.len; in udhcp_send_raw_packet()
171 packet.ip.tot_len = htons(IP_UDP_DHCP_SIZE - padding); in udhcp_send_raw_packet()
172 packet.ip.ihl = sizeof(packet.ip) >> 2; in udhcp_send_raw_packet()
173 packet.ip.version = IPVERSION; in udhcp_send_raw_packet()
174 packet.ip.ttl = IPDEFTTL; in udhcp_send_raw_packet()
175 packet.ip.check = inet_cksum(&packet.ip, sizeof(packet.ip)); in udhcp_send_raw_packet()
Ddhcprelay.c37 struct sockaddr_in ip; member
44 static struct xid_item *xid_add(uint32_t xid, struct sockaddr_in *ip, unsigned iface_no) in xid_add() argument
52 item->ip = *ip; in xid_add()
256 if (item->ip.sin_addr.s_addr == htonl(INADDR_ANY)) in pass_to_client()
257 item->ip.sin_addr.s_addr = htonl(INADDR_BROADCAST); in pass_to_client()
259 sendto_ip4(fds[item->iface_no], p, packet_len, &item->ip); in pass_to_client()
/busybox-1.35.0/examples/var_service/fw/conf/
D192.168.0.1.ipconf7 ip[$cfg]=192.168.0.1
Dlo.ipconf6 ip[$cfg]=127.0.0.1
D11.22.33.44.ipconf--6 ip[$cfg]=11.22.33.44
/busybox-1.35.0/examples/var_service/fw/etc/
Dhosts16 ip -o a l \

12