Home | History | Annotate | Download | only in ndbootd

Lines Matching defs:ip_packet

175 _ndbootd_ip_cksum(struct ip * ip_packet)
182 assert((((unsigned long) ip_packet) % sizeof(word)) == 0);
188 _word = (u_int16_t *) ip_packet;
189 byte_count = ip_packet->ip_hl << 2;
201 ip_packet->ip_sum = (~checksum);
321 struct ip *ip_packet;
505 ip_packet = (struct ip *) & ip_packet_buffer[0];
511 ip_packet = (struct ip *) (ether_packet + 1);
547 memcpy(ip_packet, packet_buffer + sizeof(struct ether_header),
551 || ip_packet->ip_p != IPPROTO_ND) {
555 _ndbootd_ip_cksum(ip_packet);
556 if (ip_packet->ip_sum != 0) {
562 + (ip_packet->ip_hl << 2)
612 if (ip_packet->ip_dst.s_addr == htonl(0)) {
613 ip_packet->ip_src = last_client_ip;
615 if (ip_packet->ip_src.s_addr !=
626 if (ip_packet->ip_dst.s_addr
714 memcpy(nd_packet, packet_buffer + sizeof(struct ether_header) + (ip_packet->ip_hl << 2), sizeof(struct ndboot_packet));
716 nd_packet = (struct ndboot_packet *) (((char *) ip_packet) + (ip_packet->ip_hl << 2));
918 ip_packet->ip_dst = ip_packet->ip_src;
919 ip_packet->ip_src = ((struct sockaddr_in *) & interface->ndbootd_interface_ifreq->ifr_addr)->sin_addr;
920 ip_packet->ip_ttl = 4;
950 sizeof(struct ether_header) + (ip_packet->ip_hl << 2) + sizeof(struct ndboot_packet),
955 ip_packet->ip_len = htons((ip_packet->ip_hl << 2)
958 ip_packet->ip_sum = 0;
959 _ndbootd_ip_cksum(ip_packet);
962 memcpy(packet_buffer + sizeof(struct ether_header), ip_packet, ip_packet->ip_hl << 2);
963 memcpy(packet_buffer + sizeof(struct ether_header) + (ip_packet->ip_hl << 2), nd_packet, sizeof(struct ndboot_packet));
986 sizeof(struct ether_header) + (ip_packet->ip_hl << 2) + sizeof(struct ndboot_packet) + ntohl(nd_packet->ndboot_packet_current_byte_count)) < 0) {