The implementation of inet_aton() has an unknown provenance. Rewrite this code to avoid potential licensing uncertainty. Also move the code from core/misc.c to its logical home in net/ipv4.c, and add a few extra test cases. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
12 |
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
13 |
|
37 |
|
14 |
|
38 |
|
15 |
|
|
|
||
588 |
|
588 |
|
589 |
|
589 |
|
590 |
|
590 |
|
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
|
595 |
|
|
|
596 |
|
|
|
597 |
|
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
|
601 |
|
|
|
602 |
|
|
|
603 |
|
|
|
604 |
|
|
|
605 |
|
|
|
606 |
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
|
|
|
610 |
|
|
|
611 |
|
|
|
612 |
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
591 |
|
623 |
|
592 |
|
624 |
|
593 |
|
625 |
|
594 |
|
|
|
595 |
|
|
|
|
626 |
|
|
|
627 |
|
|
596 |
|
628 |
|
597 |
|
629 |
|
598 |
|
630 |
|
|
|
||
603 |
|
635 |
|
604 |
|
636 |
|
605 |
|
637 |
|
606 |
|
|
|
|
638 |
|
|
607 |
|
639 |
|
608 |
|
|
|
609 |
|
|
|
|
640 |
|
|
|
641 |
|
|
610 |
|
642 |
|
611 |
|
643 |
|
612 |
|
644 |
|
|
|
||
138 |
|
138 |
|
139 |
|
139 |
|
140 |
|
140 |
|
|
141 |
|
|
|
142 |
|
|
141 |
|
143 |
|
142 |
|
144 |
|
143 |
|
145 |
|