GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ETHERS(3) FreeBSD Library Functions Manual ETHERS(3)

̾??

ethers, ether_line, ether_aton, ether_ntoa, ether_ntohost, ether_hostton???????ͥåȥ??ɥ쥹?Ѵ???????Ĵ???롼????

Standard C Library (libc, -lc)

<sys/types.h> <sys/socket.h> <net/ethernet.h> int (const char *l, struct ether_addr *e, char *hostname) struct ether_addr * ether_aton(const char *a) char * ether_ntoa(const struct ether_addr *n) int ether_ntohost(char *hostname, const struct ether_addr *e) int ether_hostton(const char *hostname, struct ether_addr *e)

???????δؿ??ϡ? ether_addr ??¤?Τ????Ѥ??ƥ??????ͥåȥ??ɥ쥹??????ޤ??? ???ι?¤?Τϥإå??ե????? ⟨netinet/if_ether.h⟩ ???????????Ƥ??ޤ???

/*
 * ???????ͥå?(MAC)???ɥ쥹?ΥХ??ȿ?
 */
#define ETHER_ADDR_LEN          6

/*
 * 48 ?ӥåȥ??????ͥåȥ??ɥ쥹?ι?¤??
 */
struct  ether_addr {
        u_char octet[ETHER_ADDR_LEN];
};

() ?ؿ??ϡ? ethers(5) ?????? ASCII ʸ?????Ǥ??? l ??????????ʸ?????ǻ??ꤵ?줿???????ͥåȥ??ɥ쥹?? e ?????ꤷ???ۥ???̾?? h ?????ꤷ?ޤ??? ???δؿ??ϡ? /etc/ethers ?ιԤ򤽤ι?????ʬ?˥ѡ????????Τ˻??Ѥ????ޤ???

() ?ؿ??ϡ????????ͥåȥ??ɥ쥹?? ASCII ɽ???? ether_addr ??¤?Τ??Ѵ????ޤ??? Ʊ?ͤˡ? ether_ntoa() ?ϡ? ether_addr ??¤?ΤȤ??ƻ??ꤵ?줿???????ͥåȥ??ɥ쥹?? ASCII ʸ???????Ѵ????ޤ???

() ?ؿ??? () ?ؿ??ϡ????????ͥåȥ??ɥ쥹?? /etc/ethers ?ǡ????١????ǻ??ꤵ?줿?б??????ۥ???̾?˥ޥåפ??ޤ??? ether_ntohost() ?ϡ????????ͥåȥ??ɥ쥹?????ۥ???̾?ؤ??Ѵ????Ԥ??? ether_hostton() ?ϡ??ۥ???̾???饤?????ͥåȥ??ɥ쥹?ؤ??Ѵ????Ԥ??ޤ???

ether_line() ?ϡ????????????????? 0 ???֤??ޤ??? Ϳ?????줿?? l ?ΰ????Ǥ??ѡ????Ǥ??ʤ??ä??????? 0 ?Ǥʤ??ͤ??֤??ޤ??? ???Ф??줿???????ͥåȥ??ɥ쥹??Ϳ?????줿 ether_addr ??¤?? e ???֤????ۥ???̾??Ϳ?????줿ʸ???? h ???֤??ޤ???

() ?ϡ????????????????ȥ??????ͥåȥ??ɥ쥹?? ASCII ɽ???????ä?ʸ?????ؤΥݥ??󥿤??֤??ޤ??? Ϳ?????줿 ether_addr ??¤?Τ??Ѵ??Ǥ??ʤ??ä??????ϡ? NULL ?ݥ??󥿤??֤??ޤ??? Ʊ???褦?ˡ? ether_aton() ???????????? ether_addr ??¤?ΤؤΥݥ??󥿤??֤??????Ԥ????? NULL ?ݥ??󥿤??֤??ޤ???

() ?ؿ??? () ?ؿ???ξ???Ȥ⡢?????????????? 0 ???֤??? /etc/ethers ?ǡ????١??????˰??פ??????Τ򸫤Ĥ??????ʤ??ä??????? 0 ?Ǥʤ??ͤ??֤??ޤ???

?桼???ϡ? ether_line(), ether_ntohost() ?????? ether_hostton() ?γƴؿ????Ϥ??????ۥ???̾ʸ???󤬡? ?֤??줿?ۥ???̾?????????????ۤ??礭?????Ȥ??ݾڤ???ɬ?פ??????ޤ???

/etc/ethers ?????? 1 ?Ĥ? + ?????ä??Ԥ????????硢 ether_ntohost() ?ؿ??? ether_hostton() ?ؿ??ϡ? /etc/ethers ?ե????????Υǡ????˲ä??ơ? NIS ethers.byname ?????? ethers.byaddr ?ޥåפ?Ĵ?٤褦?Ȥ??ޤ???

??Ϣ????

yp(4), ethers(5)

ether_aton() ?ؿ??? ether_ntoa() ?ؿ??ϡ??????餬???˸ƤӽФ??줿?Ȥ??ˤ? ???񤭤???????ǽ???Τ?????Ū???????ΰ?????¸???줿?ͤ??֤??ޤ???

ethers ?饤?֥????ؿ??Τ??μ????ϡ? FreeBSD 2.1 ?Τ????˺??????졢?о줷?ޤ?????

April 12, 1995 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.