Searched refs:opt_hdr (Results 1 – 3 of 3) sorted by relevance
755 opt_hdr.code = ntohs(opt_hdr.code); in parse_dhcp()756 opt_hdr.len = ntohs(opt_hdr.len); in parse_dhcp()761 dhcp_option_type2str(opt_hdr.code), opt_hdr.len); in parse_dhcp()768 switch (opt_hdr.code) { in parse_dhcp()842 p += opt_hdr.len; in parse_dhcp()843 rem -= opt_hdr.len; in parse_dhcp()955 opt_hdr.code = ntohs(opt_hdr.code); in parse_ia_pd_options()956 opt_hdr.len = ntohs(opt_hdr.len); in parse_ia_pd_options()961 dhcp_option_type2str(opt_hdr.code), opt_hdr.len); in parse_ia_pd_options()1028 p += opt_hdr.len; in parse_ia_pd_options()[all …]
733 struct dhcp_option_hdr opt_hdr; in build_packet() local765 opt_hdr.code = htons(DHO_CLIENTID); in build_packet()778 opt_hdr.code = htons(DHO_SERVERID); in build_packet()792 opt_hdr.code = htons(DHO_IA_PD); in build_packet()804 opt_hdr.code = htons(DHO_IA_PREFIX); in build_packet()834 opt_hdr.code = htons(DHO_ORO); in build_packet()844 opt_hdr.code = htons(DHO_ELAPSED_TIME); in build_packet()845 opt_hdr.len = htons(2); in build_packet()853 opt_hdr.code = htons(DHO_RAPID_COMMIT); in build_packet()854 opt_hdr.len = htons(0); in build_packet()[all …]
1346 opt_hdr(char *s, int *hdr) in opt_hdr() function1538 if (!opt_hdr(optarg, &hdr)) in main()