diff options
author | Thomas Huth <thuth@redhat.com> | 2017-06-13 08:29:17 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-06-15 16:11:32 +1000 |
commit | d5997edcbc1f3a7a75a2c144affeb8cbe8549f02 (patch) | |
tree | 598146d31618358e9a13b43b01a30520b3a9105d /lib/libnet/icmpv6.c | |
parent | e8f7543db0d83e06b227e12f33492109aea1403c (diff) | |
download | SLOF-d5997edcbc1f3a7a75a2c144affeb8cbe8549f02.zip SLOF-d5997edcbc1f3a7a75a2c144affeb8cbe8549f02.tar.gz SLOF-d5997edcbc1f3a7a75a2c144affeb8cbe8549f02.tar.bz2 |
libnet: Cosmetical clean-up
Replace indentation spaces with tabs, remove superfluous prototype
(ip6addr_add() is declared in ipv6.h already) and fix the old-style
declaration of ip6_create_prefix_info(). No functional changes done.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libnet/icmpv6.c')
-rw-r--r-- | lib/libnet/icmpv6.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libnet/icmpv6.c b/lib/libnet/icmpv6.c index 2e0cf7c..d44ce84 100644 --- a/lib/libnet/icmpv6.c +++ b/lib/libnet/icmpv6.c @@ -230,11 +230,10 @@ send_neighbour_solicitation (int fd, ip6_addr_t *dest_ip6) snma.addr[13] = dest_ip6->addr[13]; snma.addr[14] = dest_ip6->addr[14]; snma.addr[15] = dest_ip6->addr[15]; - fill_ip6hdr((uint8_t *) headers.ip6h, - ICMPv6_HEADER_SIZE + - sizeof(struct neighbour_solicitation), - 0x3a, //ICMPv6 - get_ipv6_address(), &snma); + fill_ip6hdr((uint8_t *) headers.ip6h, + ICMPv6_HEADER_SIZE + sizeof(struct neighbour_solicitation), + 0x3a, //ICMPv6 + get_ipv6_address(), &snma); /* Fill ICMPv6 message */ headers.icmp6h->type = ICMPV6_NEIGHBOUR_SOLICITATION; @@ -280,11 +279,10 @@ send_neighbour_advertisement (int fd, struct neighbor *target) sizeof(struct ip6hdr)); /* Fill IPv6 header */ - fill_ip6hdr(ether_packet + sizeof(struct ethhdr), - ICMPv6_HEADER_SIZE + - sizeof(struct neighbour_advertisement), - 0x3a, //ICMPv6 - get_ipv6_address(), (ip6_addr_t *) &(target->ip.addr)); + fill_ip6hdr(ether_packet + sizeof(struct ethhdr), + ICMPv6_HEADER_SIZE + sizeof(struct neighbour_advertisement), + 0x3a, //ICMPv6 + get_ipv6_address(), (ip6_addr_t *) &(target->ip.addr)); /* Fill ICMPv6 message */ memcpy( &(headers.icmp6h->icmp6body.nghb_adv.target), |