Home
last modified time | relevance | path

Searched refs:nadvert (Results 1 – 2 of 2) sorted by relevance

/external/syslinux/gpxe/src/net/
Dicmpv6.c102 struct neighbour_advert *nadvert = iob_put ( rxiobuf, sizeof ( *nadvert ) );
103 nadvert->type = 136;
104 nadvert->code = 0;
105 nadvert->flags = ICMP6_FLAGS_SOLICITED;
106 nadvert->csum = 0xffff;
107 nadvert->target = server.sin6_addr;
108 nadvert->opt_type = 2;
109 nadvert->opt_len = 1;
110 memcpy ( nadvert->opt_ll_addr, ll_addr, 6 );
115 ip6hdr->payload_len = htons ( sizeof ( *nadvert ) );
Dndp.c151 struct neighbour_advert *nadvert = iobuf->data; in ndp_process_advert() local
155 if ( iob_len ( iobuf ) < sizeof ( *nadvert ) ) { in ndp_process_advert()
160 assert ( nadvert->code == 0 ); in ndp_process_advert()
161 assert ( nadvert->flags & ICMP6_FLAGS_SOLICITED ); in ndp_process_advert()
162 assert ( nadvert->opt_type == 2 ); in ndp_process_advert()
165 ndp = ndp_find_entry ( &nadvert->target ); in ndp_process_advert()
168 assert ( nadvert->opt_len == in ndp_process_advert()
171 if ( IP6_EQUAL ( ndp->in6, nadvert->target ) ) { in ndp_process_advert()
172 memcpy ( ndp->ll_addr, nadvert->opt_ll_addr, in ndp_process_advert()