Lines Matching refs:len

296 int ip_transmit(int len, const void *buf)
307 eth_transmit(broadcast, IP, len, buf);
319 eth_transmit(multicast, IP, len, buf);
356 eth_transmit(arptable[arpentry].node, IP, len, buf);
362 int len, const void *buf)
369 ip->len = htons(len);
390 pseudo.len = udp->len;
396 checksum = add_ipchksums(12, checksum, ipchksum(udp, ntohs(udp->len)));
403 int len, const void *buf)
408 build_ip_hdr(destip, ttl, IP_UDP, 0, len, buf);
412 udp->len = htons(len - sizeof(struct iphdr));
423 unsigned int destsock, int len, const void *buf)
425 build_udp_hdr(destip, srcsock, destsock, 60, len, buf);
426 return ip_transmit(len, buf);
529 int len; /* Length of vendor */
536 len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
538 if (len < 0) {
556 dhcpack_length = len + sizeof (struct bootp_t) - BOOTP_VENDOR_LEN;
567 memcpy((char *)rfc1533_venddata, (char *)(bootpreply->bp_vend), len);
568 decode_rfc1533(rfc1533_venddata, 0, len, 1);
626 int len;
633 len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) +
635 if (len < 0){
653 dhcpack_length = len + sizeof (struct dhcp_t) - DHCP_OPT_LEN;
664 memcpy((char *)rfc1533_venddata, (char *)(dhcpreply->bp_vend), len);
665 decode_rfc1533(rfc1533_venddata, 0, len, 1);
786 if (ipchksum(igmp, ntohs(ip->len) - iplen) != 0)
941 if (ntohs(ip->len) > ETH_MAX_MTU)
961 if (ntohs(udp->len) > (ntohs(ip->len) - iplen))
1031 int decode_rfc1533(unsigned char *p, unsigned int block, unsigned int len, int eof)
1042 endp = p + len;
1048 len -= 4; }
1049 if (extend + len <= (unsigned char *)
1051 memcpy(extend, p, len);
1052 extend += len;
1331 int ret, len = DHCP_OPT_LEN;
1346 memcpy((char *)rfc1533_venddata, (char *)(dhcpreply->bp_vend), len);
1347 decode_rfc1533(rfc1533_venddata, 0, len, 1);