Whitespace
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 11 Jun 2014 14:08:25 +0000 (15:08 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 11 Jun 2014 14:08:25 +0000 (15:08 +0100)
src/lib/dhcp.c

index dd8553b..1a91807 100644 (file)
@@ -339,7 +339,7 @@ RADIUS_PACKET *fr_dhcp_recv(int sockfd)
        if (getsockname(sockfd, (struct sockaddr *) &dst, &sizeof_dst) < 0) {
                fr_strerror_printf("getsockname failed: %s", strerror(errno));
                rad_free(&packet);
-               return NULL;    
+               return NULL;
        }
 #endif
 
@@ -582,7 +582,7 @@ ssize_t fr_dhcp_decode_options(uint8_t *data, size_t len, VALUE_PAIR **head)
        while (next < (data + len)) {
                int num_entries, alen;
                DICT_ATTR *da;
-               
+
                p = next;
 
                if (*p == 0) break;
@@ -673,7 +673,7 @@ ssize_t fr_dhcp_decode_options(uint8_t *data, size_t len, VALUE_PAIR **head)
                        p += alen;
                } /* loop over array entries */
        } /* loop over the entire packet */
-       
+
        return next - data;
 }
 
@@ -781,15 +781,15 @@ int fr_dhcp_decode(RADIUS_PACKET *packet)
        /*
         *      Loop over the options.
         */
-        
+
        /*
-        *      Nothing uses tail after this call, if it does in the future 
+        *      Nothing uses tail after this call, if it does in the future
         *      it'll need to find the new tail...
         *      FIXME: This should also check sname && file fields.
         *      See the dhcp_get_option() function above.
         */
        if (fr_dhcp_decode_options(packet->data + 240, packet->data_len - 240,
-                                  tail) < 0) { 
+                                  tail) < 0) {
                return -1;
        }
 
@@ -1140,7 +1140,7 @@ int fr_dhcp_encode(RADIUS_PACKET *packet)
        } else {
                *p++ = 1;       /* client message */
        }
-       
+
        /* DHCP-Hardware-Type */
        if ((vp = pairfind(packet->vps, DHCP2ATTR(257)))) {
                *p++ = vp->vp_integer & 0xFF;
@@ -1253,7 +1253,7 @@ int fr_dhcp_encode(RADIUS_PACKET *packet)
         *      instead of being placed verbatim in the filename field.
         */
 
-       /* DHCP-Boot-Filename */        
+       /* DHCP-Boot-Filename */
        if ((vp = pairfind(packet->vps, DHCP2ATTR(269)))) {
                if (vp->length > DHCP_FILE_LEN) {
                        memcpy(p, vp->vp_strvalue, DHCP_FILE_LEN);
@@ -1557,7 +1557,7 @@ int fr_dhcp_add_arp_entry(int fd, const char *interface,
        interface = interface;
        macaddr = macaddr;
        ip = ip;
-       
+
        fr_strerror_printf("Adding ARP entry is unsupported on this system");
        return -1;
 #endif