tst.inet_ntoa6.d (178529) | tst.inet_ntoa6.d (178534) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 39 unchanged lines hidden (view full) --- 48 ip6a = this->buf6a; 49 ip6b = this->buf6b; 50 ip6c = this->buf6c; 51 ip6d = this->buf6d; 52 ip6e = this->buf6e; 53 ip6f = this->buf6f; 54 ip6g = this->buf6g; 55 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 39 unchanged lines hidden (view full) --- 48 ip6a = this->buf6a; 49 ip6b = this->buf6b; 50 ip6c = this->buf6c; 51 ip6d = this->buf6d; 52 ip6e = this->buf6e; 53 ip6f = this->buf6f; 54 ip6g = this->buf6g; 55 |
56 ip6a->_S6_un._S6_u8[0] = 0xfe; 57 ip6a->_S6_un._S6_u8[1] = 0x80; 58 ip6a->_S6_un._S6_u8[8] = 0x02; 59 ip6a->_S6_un._S6_u8[9] = 0x14; 60 ip6a->_S6_un._S6_u8[10] = 0x4f; 61 ip6a->_S6_un._S6_u8[11] = 0xff; 62 ip6a->_S6_un._S6_u8[12] = 0xfe; 63 ip6a->_S6_un._S6_u8[13] = 0x0b; 64 ip6a->_S6_un._S6_u8[14] = 0x76; 65 ip6a->_S6_un._S6_u8[15] = 0xc8; 66 ip6b->_S6_un._S6_u8[0] = 0x10; 67 ip6b->_S6_un._S6_u8[1] = 0x80; 68 ip6b->_S6_un._S6_u8[10] = 0x08; 69 ip6b->_S6_un._S6_u8[11] = 0x08; 70 ip6b->_S6_un._S6_u8[13] = 0x20; 71 ip6b->_S6_un._S6_u8[13] = 0x0c; 72 ip6b->_S6_un._S6_u8[14] = 0x41; 73 ip6b->_S6_un._S6_u8[15] = 0x7a; 74 ip6c->_S6_un._S6_u8[15] = 0x01; 75 ip6e->_S6_un._S6_u8[12] = 0x7f; 76 ip6e->_S6_un._S6_u8[15] = 0x01; 77 ip6f->_S6_un._S6_u8[10] = 0xff; 78 ip6f->_S6_un._S6_u8[11] = 0xff; 79 ip6f->_S6_un._S6_u8[12] = 0x7f; 80 ip6f->_S6_un._S6_u8[15] = 0x01; 81 ip6g->_S6_un._S6_u8[10] = 0xff; 82 ip6g->_S6_un._S6_u8[11] = 0xfe; 83 ip6g->_S6_un._S6_u8[12] = 0x7f; 84 ip6g->_S6_un._S6_u8[15] = 0x01; | 56 ip6a->__u6_addr.__u6_addr8[0] = 0xfe; 57 ip6a->__u6_addr.__u6_addr8[1] = 0x80; 58 ip6a->__u6_addr.__u6_addr8[8] = 0x02; 59 ip6a->__u6_addr.__u6_addr8[9] = 0x14; 60 ip6a->__u6_addr.__u6_addr8[10] = 0x4f; 61 ip6a->__u6_addr.__u6_addr8[11] = 0xff; 62 ip6a->__u6_addr.__u6_addr8[12] = 0xfe; 63 ip6a->__u6_addr.__u6_addr8[13] = 0x0b; 64 ip6a->__u6_addr.__u6_addr8[14] = 0x76; 65 ip6a->__u6_addr.__u6_addr8[15] = 0xc8; 66 ip6b->__u6_addr.__u6_addr8[0] = 0x10; 67 ip6b->__u6_addr.__u6_addr8[1] = 0x80; 68 ip6b->__u6_addr.__u6_addr8[10] = 0x08; 69 ip6b->__u6_addr.__u6_addr8[11] = 0x08; 70 ip6b->__u6_addr.__u6_addr8[13] = 0x20; 71 ip6b->__u6_addr.__u6_addr8[13] = 0x0c; 72 ip6b->__u6_addr.__u6_addr8[14] = 0x41; 73 ip6b->__u6_addr.__u6_addr8[15] = 0x7a; 74 ip6c->__u6_addr.__u6_addr8[15] = 0x01; 75 ip6e->__u6_addr.__u6_addr8[12] = 0x7f; 76 ip6e->__u6_addr.__u6_addr8[15] = 0x01; 77 ip6f->__u6_addr.__u6_addr8[10] = 0xff; 78 ip6f->__u6_addr.__u6_addr8[11] = 0xff; 79 ip6f->__u6_addr.__u6_addr8[12] = 0x7f; 80 ip6f->__u6_addr.__u6_addr8[15] = 0x01; 81 ip6g->__u6_addr.__u6_addr8[10] = 0xff; 82 ip6g->__u6_addr.__u6_addr8[11] = 0xfe; 83 ip6g->__u6_addr.__u6_addr8[12] = 0x7f; 84 ip6g->__u6_addr.__u6_addr8[15] = 0x01; |
85 86 printf("%s\n", inet_ntoa6(ip6a)); 87 printf("%s\n", inet_ntoa6(ip6b)); 88 printf("%s\n", inet_ntoa6(ip6c)); 89 printf("%s\n", inet_ntoa6(ip6d)); 90 printf("%s\n", inet_ntoa6(ip6e)); 91 printf("%s\n", inet_ntoa6(ip6f)); 92 printf("%s\n", inet_ntoa6(ip6g)); 93 94 exit(0); 95} | 85 86 printf("%s\n", inet_ntoa6(ip6a)); 87 printf("%s\n", inet_ntoa6(ip6b)); 88 printf("%s\n", inet_ntoa6(ip6c)); 89 printf("%s\n", inet_ntoa6(ip6d)); 90 printf("%s\n", inet_ntoa6(ip6e)); 91 printf("%s\n", inet_ntoa6(ip6f)); 92 printf("%s\n", inet_ntoa6(ip6g)); 93 94 exit(0); 95} |