~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to usr/kinit/ipconfig/bootp_packet.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-01-04 20:24:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104202452-ec4v3n829rymukuv
Tags: 1.1.15-0ubuntu1
* New upstream version.

* Patch to fix compilation on parisc64 kernels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ipconfig/bootp_packet.h
 
3
 */
 
4
#ifndef BOOTP_PACKET_H
 
5
#define BOOTP_PACKET_H
 
6
 
 
7
#include <sys/uio.h>
 
8
 
 
9
struct netdev;
 
10
 
 
11
/* packet ops */
 
12
#define BOOTP_REQUEST   1
 
13
#define BOOTP_REPLY     2
 
14
 
 
15
/* your basic bootp packet */
 
16
struct bootp_hdr {
 
17
        __u8    op;
 
18
        __u8    htype;
 
19
        __u8    hlen;
 
20
        __u8    hops;
 
21
        __u32   xid;
 
22
        __u16   secs;
 
23
        __u16   flags;
 
24
        __u32   ciaddr;
 
25
        __u32   yiaddr;
 
26
        __u32   siaddr;
 
27
        __u32   giaddr;
 
28
        __u8    chaddr[16];
 
29
        char    server_name[64];
 
30
        char    boot_file[128];
 
31
        /* 312 bytes of extensions */
 
32
};
 
33
 
 
34
#endif