1f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh/* include/linux/if_pppopns.h 2f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * 3f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * Header for PPP on PPTP Network Server / PPPoPNS Socket (RFC 2637) 4f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * 5f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * Copyright (C) 2009 Google, Inc. 6f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * Author: Chia-chi Yeh <chiachi@android.com> 7f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * 8f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * This software is licensed under the terms of the GNU General Public 9f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * License version 2, as published by the Free Software Foundation, and 10f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * may be copied, distributed, and modified under those terms. 11f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * 12f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * This program is distributed in the hope that it will be useful, 13f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * but WITHOUT ANY WARRANTY; without even the implied warranty of 14f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh * GNU General Public License for more details. 16f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh */ 17f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh 18f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh#ifndef __LINUX_IF_PPPOPNS_H 19f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh#define __LINUX_IF_PPPOPNS_H 20f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh 21f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh#include <linux/socket.h> 22f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh#include <linux/types.h> 23f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh 24f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yehstruct sockaddr_pppopns { 25f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh sa_family_t sa_family; /* AF_PPPOX */ 26f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh unsigned int sa_protocol; /* PX_PROTO_OPNS */ 27f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh int tcp_socket; 28f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh __u16 local; 29f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh __u16 remote; 30f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh} __attribute__((packed)); 31f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh 32f96c841f896d54b2bc112261d572ed7b2c9ea272Chia-chi Yeh#endif /* __LINUX_IF_PPPOPNS_H */ 33