"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/src/net_portion.h" (15 May 2001, 487 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2   net_portion.h
    3 
    4   $Id: net_portion.h,v 1.1.1.1 2001/05/15 00:25:00 evertonm Exp $
    5  */
    6 
    7 #ifndef NET_PORTION_H
    8 #define NET_PORTION_H
    9 
   10 #include <stdio.h>
   11 #include <sys/types.h>
   12 #include <sys/socket.h>
   13 #include "addr.h"
   14 
   15 class net_portion
   16 {
   17  private:
   18   struct ip_addr address;
   19   short          mask_len;
   20 
   21  public:
   22   net_portion(struct ip_addr addr, short m_len);
   23 
   24   void show() const;
   25 
   26   int owns(const struct ip_addr *ip) const;
   27 };
   28 
   29 #endif /* NET_PORTION_H */
   30 
   31 /* Eof: net_portion.h */