#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include "repsheet.h"
#include "xff.h"
 | 
| int  | remote_address (char *connected_address, char *xff_header, char *address) | 
|   | 
- Author
 - Aaron Bedra 
 
- Date
 - 12/09/2014 
 
 
      
        
          | int remote_address  | 
          ( | 
          char *  | 
          connected_address,  | 
        
        
           | 
           | 
          char *  | 
          xff_header,  | 
        
        
           | 
           | 
          char *  | 
          address  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Determines the IP address of the actor. If X-Forwarded-For has information, the function takes the first address in the string. If no XFF information is provided the function returns the connected_address.
- Parameters
 - 
  
    | connected_address | The IP of the connection to the server  | 
    | xff_header | The contents of the X-Forwarded-For header  | 
    | address | The string to store the resulting address  |